How do I collect and spawn extra weapons ?

Get help using Construct 2

Post » Fri Sep 05, 2014 5:24 am

Hi guys, I think I have to do that with variables...but it's a bit hard to understand how.
I need this... : my player can collect bombs....each collected bomb should be displayed as number on the left corner of the screen. If there are bombs collected the player can spawn it...but on 0 bombs no spawn abymore...

can somebody help me ???

thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Fri Sep 05, 2014 6:28 am

Hi guys, I managed it to make this stuff like a score system..every is fine exept one case.
If score ( in my case number of bombs is 0) how can I "disable" spawning with key B ( that is the key to spawn bombs).
or make it simply NOT sawning anymore....

thanks guys
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Fri Sep 05, 2014 1:53 pm

You can use variable to save bombs. So, every player and bomb contact, add 1 to "bomb" variable. Then every bomb spawned, just subtact 1 from "bom" variable. And makes event like this: If "bomb" variable = 0, spawnable bomb disable..

You can ask me if you dont understand :D
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Fri Sep 05, 2014 2:27 pm

thanks...I will try now :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865


Return to How do I....?

Who is online

Users browsing this forum: leena222, mindragon73, tatogame and 22 guests