0 Favourites

Global variable value changing randomly

  • [attachment=0:2wi7savr][/attachment:2wi7savr]Using the tutorial from the following URL , created the game Ghost shooter.The game just came fine when i developed with whatever was mentioned in the tutorial.Now, tried to enhance it by adding a sprite called ring.

    What i intended to do it was as soon as the Global value score reaches 11 then the ring surrounds the player and monsters die out automatically when they hit the ring. As i expected the ring surrounded the player as soon as he/she reached 11 but when a monster hits the ring the score should be incremented to 12 but rather it gets incremented to a random number.Am a newbie to this construct 2 and i hope someone can assist me on this.Thanks in advance.I also attach the .capx of the game for your reference.

  • I have redone it a bit

    You should take the mousebuttons as fireoption aswell !

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • [Event 9] Score > 10: Create Ring

    That's going to create a Ring every tick as long as the score > 10 so it will create hundreds of them. Then the monster collides with all the rings and you get hundreds of points. You can add the 'System: Trigger Once' condition that event so that it only runs once when score > 10.

  • Ramones : Thank you very Much !!!! Just tried what you said and it worked just fine

    @Yonda : Thank you so much for your response...

    Its great to see people helping each other !!!!

  • ramones : Thank you very Much !!!! Just tried what you said and it worked just fine

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic Locked topic
195 16,202
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
102 6,404
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
64 12,947
trollface's avatar
trollface