How do I a sprite that moves automatically up and down?

Get help using Construct 2

Post » Thu Jun 15, 2017 4:12 am

The sprite is gonna be an enemy. :)
I am starting developing with Construct so precised instructions if you know them, are gonna help me a lot!

Greetings!
B
3
Posts: 1
Reputation: 177

Post » Thu Jun 15, 2017 5:14 am

Hi,
There are many ways.

One way:

You can use the Bullet behavior and say:

CONDITION: ENEMY Y > ???
ACTION: ENEMY bullet angle of motion = -90

CONDITION: ENEMY Y < ???
ACTION: ENEMY bullet angle of motion = 90

Another way:

You can setup invisible objects as a boundary and when your ENEMY collides with the bottom boundary tell it to go up (bullet motion angle -90) and when it collides on the top one tell it to go down (bullet motion angle 90)

The method you choose to use will depend on your project.

Good luck!
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.

My games & gaming portal = DolyGames

If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.

Cheers,

COSMOS
B
20
S
9
G
1
Posts: 75
Reputation: 2,152

Post » Thu Jun 15, 2017 10:05 am

Also you can use Sine behavior and assign it to the Y of the sprite
B
33
S
14
G
5
Posts: 232
Reputation: 5,557


Return to How do I....?

Who is online

Users browsing this forum: Laurent and 10 guests