Score and new sprite

0 favourites
  • 2 posts
From the Asset Store
Create the right kind of drama with Film Scoring Tools sound library!
  • hi guys

    I want to design a level with some sprites that are my coins and i want to when the player collect 4 coins ( or a variable number ) some new sprites ( enemy ) come to level

    Thanks

    Have a great day/night

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You just set up a globar variable named "score". Then you add these events and actions:

    Player - On collision with another object (Coin):

    • System: Add to variable (score): 1
    • Coin: Destroy

    System - Compare variable (score): = 4

    • System: Create object (enemy)

    Mind that though that if you didn't have any enemy created in the game before, it will throw an error (it's a limitation in HTML5). You'll have to create a dummy, empty layout (no event sheet needed for that one) and place an enemy there before you can create it. To put it simple: if the object wasn't added on any layout before, it can't be created.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)