๐Ÿ˜
Mutate tutorials and guides
  • ๐Ÿ’œWelcome to Mutate!
  • Guides
    • ๐ŸHow to get started using Mutate
    • ๐Ÿ—บ๏ธBasic Navigation in Mutate
    • ๐Ÿ“ฅImporting assets into Mutate
    • ๐Ÿง Creating game logic in Mutate
      • โœจSpawning
      • ๐Ÿ’€Re-Spawning
      • โš™๏ธPlatforms
      • ๐Ÿ†Collectibles
      • ๐Ÿ‘€Item Visibility
      • ๐Ÿ”‚Item Respawn
    • ๐Ÿƒโ€โ™€๏ธObstacle course tutorial
  • Tools
    • โœŠGrab Manipulator
    • ๐Ÿ› ๏ธTransform Manipulator
      • โ†”๏ธMove
      • ๐Ÿ”„Rotate
      • โ†—๏ธScale
      • ๐ŸŒGlobal/Local
    • โ›“๏ธLinking
      • ๐Ÿ’ฅComponents, Actions & Events
      • ๐Ÿ“ฆEntity Components
      • ๐Ÿ™‹Player Components
      • ๐ŸŽฎGame Components
      • ๐ŸŒEnvironment Components
  • Content Browsers
    • ๐Ÿ“’Asset Browser
    • ๐ŸŽจMaterial Browser
  • COMPONENT TUTORIALS
    • ๐Ÿ”Components - a closer look
      • Entity Components
        • โ†•๏ธMover
          • Elevators
        • ๐Ÿ”ƒRotator
        • ๐ŸŽฏCollider
        • ๐ŸšงCollision Toggler
        • ๐Ÿ‘ˆInteract
        • ๐Ÿ•ถ๏ธHider
        • โฐTimer
        • ๐Ÿ’กLight Source
        • ๐ŸฃSpawn Point
        • โš ๏ธTrigger Zone
        • ๐Ÿงšโ€โ™€๏ธForce Zone
        • ๐Ÿ”“Exclusive Zone
        • ๐Ÿ“ธPost-Process Zone
        • ๐ŸŽงSound
        • ๐ŸŽฒDie Roller
        • ๐Ÿ’ฃDestruction
        • ๐Ÿ”ซShootable
        • ๐Ÿ’ฌBroadcaster
Powered by GitBook
On this page
  1. Guides
  2. Creating game logic in Mutate

Collectibles

a.k.a creating an Interaction with a Player Component

PreviousPlatformsNextItem Visibility

Last updated 3 years ago

Just like entity components, we can add special components to players and the game as well. To track points a player can earn, we need to assign a Player Component. Head to Linking again, and you will see three new icons appear. These are components for Players, the Game overall, and the Environment.

Select the โ€˜Player Componentsโ€™ tab, press + to reveal more options on the right-hand side components menu, and select โ€˜Score.โ€™

Place any entity and add the โ€˜Interactโ€™ component to it. You can also change the text that appears when the player hovers over the item in-game, so for collectibles itโ€™s best just to put โ€˜Collect.โ€™

Now create a link from the collectible; select โ€˜Interactedโ€™ and link to the players icon. Complete the link with โ€˜Gain Score,โ€™ filtering so only the player that interacted gets points.

Tip: By default, points go up by 100 whenever you collect something, so make sure your final score is large enough to accommodate this!

To finish it out, select โ€˜Yesโ€™ for โ€˜Win by reaching.โ€™ Now itโ€™s a race to see who can collect the most first!

๐Ÿง 
๐Ÿ†