How to make actions speed up over time

Get help using Construct 2

Post » Fri Nov 25, 2011 2:46 pm

Hi Guys

I am putting together a "Whack a Mole" game.

How would i get the moles to pop up faster and faster as time goes on.

thanks for your help
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Fri Nov 25, 2011 4:07 pm

@Lprez: you can put an action like "Animation : setSpeed", run by the system every X seconds.
And, by the wait, are you sure the image of your avatar is appropriate on a forum where underage children can read the various pages ? (it doesn't bother me, but it can offend some people...)
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Fri Nov 25, 2011 4:20 pm

Depends on how you currently have it set up. Please be a little more specific and we can help you out.

If you're using every x seconds, replace x with a value that is subtracted from every now and then (but make sure it stops at some point; can't have moles popping up every millisecond!)
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Nov 28, 2011 1:00 pm

@Pode, sorry about the avatar, I have not manually put it on here, I play Battlefield 3 and they also use Gravatar,(as Scirra do) and it has picked up my email address for this forum and auto selected that avatar.

I havedeleted it from my Gravatar account so just need it to disappear from my profile here.

huge apologies for that, it's not something I wouldhave put in this forum.

thx for the responses also guys.
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Mon Nov 28, 2011 2:58 pm

@ Tokinsom

Currently I have no mechanics in place.

I have 12 moles which I need to spawn randomly but as the score gets higher and higher I wanted the spawn rates to speed up to make it more difficult.

I hope this helps.
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Wed Nov 30, 2011 12:55 pm

Hi Guys, i wanted to revisit this and put a little bit more of an explanation on as it is stumping me at the moment.

I have 12 holes for 12 moles.

I want the moles to pop up randomly.

as times passes i want the spawning to become faster and faster.

1. do i start 1 mole off then use a system > wait for the others
2. do i just use system > every x seconds and use random(x-xx)

to increase the spawn rate over time (sorry guys but did not really understand your advice in previous posts) what would i need to do.

many thanks for your helpLprez2011-11-30 12:55:52
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Wed Nov 30, 2011 1:08 pm

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Nov 30, 2011 1:34 pm

Thank you for that.

my background has 12 holes, can I use 1 mole sprite and have it randomly spawn at the various x,y co-oridinates for example.

system > create object>mole on layer 0 at random 91,36, random 34,36 etc etc.

or should i use 12 mole sprites to spawn at their own set co-ordinates.

many thanks
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Wed Nov 30, 2011 1:59 pm

Whack-a-mole Advanced.

You gotta love C2
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Nov 30, 2011 4:13 pm

you sir, are a legend
B
4
G
2
Posts: 30
Reputation: 1,260

Next

Return to How do I....?

Who is online

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