How to put this on and WHILE,

Get help using Construct 2

Post » Fri Apr 05, 2013 5:53 pm

Ho, i Need to put this on a regular WHILE, to make run stuff while game is on level 1, 2, 3, 4 etc...

I can create a while, but then i loose the ability to control the timing of creation.

Right Now I have two choices
1- Receive a good tip
3- Make a lots of event sheets and call them when needed (quite far from being efficent, but its my workaround)

What i need to do is to COMPARE in witch lever the user is, and then put the lines of codes of creations of monters (controled by time random stuff)

Any help will be GOOD HELP! :)


B
10
S
2
G
2
Posts: 68
Reputation: 2,273

Post » Fri Apr 05, 2013 5:56 pm

Really short Question, cause i know i may not asked propertly...
Is there a way to put the ABOVE piece of code IN SOME CONDITION to compare the level?
That will help me to reduce the random time the monsters appear by level and make the game harder and harder...
B
10
S
2
G
2
Posts: 68
Reputation: 2,273

Post » Fri Apr 05, 2013 6:06 pm

There is an action that compares the value of variables, if that's what you mean?

So, like:

CurrentLevel = 1 -> do all of these sub-events to create these monsters every whatever seconds
CurrentLevel = 2 -> do all of these sub-events to create those monsters every whatever seconds
etc.

I'm not sure exactly what your code looks like because you've chosen a really small snippet, but if I were to guess I'd say you wouldn't even need to use while.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Fri Apr 05, 2013 6:45 pm

Thanks for you reply commarade!

Look! I solved making an "ADD ANOTHER CONDITION" and puting the desired level to work :)

I havent get any complex yet to be needy of the sub event stuff :)
B
10
S
2
G
2
Posts: 68
Reputation: 2,273


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2, Yahoo [Bot] and 25 guests