spawn bubbles from a moving diver

Get help using Construct 2

Post » Sun Feb 05, 2012 5:05 pm

Hello All

Can anyone tell me or have an very small example of:

spawning bubbles from player pos. when moving around

Kind regards
Steen Osterby
B
10
S
5
G
2
Posts: 32
Reputation: 2,028

Post » Sun Feb 05, 2012 5:22 pm

Firstly its always good to post your capx. It makes it easier for us to help you.

But what you want sounds relatively simple as long as you have a decent understand of Construct2.

In your diver image add another image point, place it where you want the bubble's to come from.

then add the event:

system.EveryXSeconds(0.8)
     ->Diver.spawnAnotherObject(Bubble, 1) // were spawning a bubble at image point 1 or what ever your image point is.

You can easily modifiy this.

For example you can set the seconds to: int(random(1, 2)) this will give you a whole number between 1 and 2.

or for any value: random(0.1, 2) this will give you any number between o.1 or 2
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Feb 06, 2012 12:43 pm

super thanks. I will remember to comup with an example in the future.

kind regards
steenosterby
B
10
S
5
G
2
Posts: 32
Reputation: 2,028


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, Braus, Zebbi and 6 guests