Global variable value changing randomly

Get help using Construct 2

Post » Wed Sep 17, 2014 4:08 am

Message: bharani is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Shooter_Sketcheer.capx
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.
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 3
Reputation: 208

Post » Wed Sep 17, 2014 6:34 am

I have redone it a bit

You should take the mousebuttons as fireoption aswell !
You do not have the required permissions to view the files attached to this post.
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Wed Sep 17, 2014 11:00 am

[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.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,620

Post » Thu Sep 18, 2014 12:01 am

@ 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 !!!!
B
4
Posts: 3
Reputation: 208

Post » Thu Sep 18, 2014 12:01 am

@Ramones : Thank you very Much !!!! Just tried what you said and it worked just fine :)
B
4
Posts: 3
Reputation: 208


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests