spawn sprites at certain score levels

Get help using Construct 2

Post » Tue Nov 05, 2013 3:03 pm

i have been trying to figure this out for a couple of days so i thought i would ask , i have random spawn points but i want to spawn a life at certain score levels for players to collect .

any help or a point in the right directions would be awesome
B
1
Posts: 2
Reputation: 129

Post » Tue Nov 05, 2013 3:12 pm

system compare: score > 123235342
system trigger once while true:
- pick random instance spawnpoint: spawnpoint spawn life on layer something imagepoint something
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Tue Nov 05, 2013 3:13 pm

I guess you are using a variable to keep your score, so then it would be:

If Score > (the certain level) - create sprite at random spawn point.

use a trigger once to make sure the sprite isn't created every tick.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 06, 2013 12:21 pm

[QUOTE=LittleStain] I guess you are using a variable to keep your score, so then it would be:

If Score > (the certain level) - create sprite at random spawn point.

use a trigger once to make sure the sprite isn't created every tick.[/QUOTE]



sorry i was not too clear , im using the above code but can i use a or block for multiple score spawns or have to to a separate if statements , i know how i would do it in python or Java , but the process in construct 2 works its a little diff
B
1
Posts: 2
Reputation: 129


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests