How do I - Sprite comes onto screen pauses then leaves again

Get help using Construct 2

Post » Thu May 08, 2014 9:22 pm

Hi all,

How would I have a sprite (enemy ship in a horizontal scrolling shooter) come onto the scene smoothly from the right, pause in the middle of the screen for a few seconds, and then pick up speed and fly off the left hand side of the scene.

I'm a newbie and can't quite get my head around how to achieve this.

Any help much appreciated!

Thanks
B
4
Posts: 5
Reputation: 210

Post » Thu May 08, 2014 9:25 pm

Compare it's X coordinate. Wait and then make it move to the other way?
B
33
S
9
G
3
Posts: 493
Reputation: 4,042

Post » Thu May 08, 2014 10:25 pm

Thanks alvarop. First bit sounds simple enough. How do I go about waiting before moving off again?
B
4
Posts: 5
Reputation: 210

Post » Thu May 08, 2014 10:30 pm

There is a command called wait, heh!
B
33
S
9
G
3
Posts: 493
Reputation: 4,042

Post » Thu May 08, 2014 10:51 pm

So there is :) I've had to accomplish this with 2 conditions and 6 actions! Gotta be a more efficient way than this...

(events)
enemy X < 500
enemy StoppedYet = 0 (instance variable)

(actions)
Set StoppedYet to 1
Set Bullet Speed to 0
Set Bullet acceleration to 0
wait 3 seconds
Set Bullet Speed to 400
Set Bullet acceleration to 400

Is that the best way?
B
4
Posts: 5
Reputation: 210


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, tarek2, Yahoo [Bot] and 11 guests