Setting Bullet Speed of Object "On Created"

Get help using Construct 2

Post » Fri May 02, 2014 7:49 pm

Who knew that meteorology was such a complicated thing in C2?!
Image
(https://www.dropbox.com/s/e0ovspr3lfs6i ... Clouds.png)
Above is the event sheet for my scenery events...background images and stuff.
What I'm trying to do is have clouds randomly generated from the Cloud Generator object (there are three instances). Whenever the MakeCloudTimer reaches 0, that generator will spawn one of three different cloud images (separate sprites). The clouds will move between 40 to 60 pps to the left (so the Bullet behavior angle of motion should be 180).

What I cannot figure out is why the "On Created" condition is not getting newly created/spawned clouds to work properly. They end up shooting off to the right (per the original parameters of the Cloud Family object). What is it I'm missing? Thanks.
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
142
S
24
G
8
Posts: 793
Reputation: 15,157

Post » Sat May 03, 2014 12:20 am

Move 'On created' out of the CloudGenerator event. Triggers happen outside of the event loop.
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Sat May 03, 2014 7:04 pm

@blackhornet - Got it! :) Thank you, sir! As always, you're awesome.
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
142
S
24
G
8
Posts: 793
Reputation: 15,157


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests