How do I make a spirte move up and down in a loop

Get help using Construct 2

Post » Sat Jul 30, 2016 9:27 pm

The sine behavior moves an object arround its initial state. There are 2 offsets where it is on exactly its intitial state. Since you dont want it to jump.

Zero & Period/2

Image
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Aug 06, 2016 10:25 am

Can't a negative value in the magnitude setting work?
B
12
S
3
Posts: 33
Reputation: 897

Post » Sat Aug 06, 2016 7:55 pm

Hey,

I am not an expert. However while learning construct 2 i have made a sprite go around a screen following some certain instructions. I have been helped on this forum a lot, so here is my best shot to help you out in turn.

0. Set window size: 800, 480, layout size must equal window size.
1. Give your sprite a bullet behaviour (bullet properties: "set angle" set to "yes", speed:100) and give it an instance variable, set an instance variable called "side" to 0.
2. Follow the events here: postimg.org/image/54v6ie0if/

As a result a sprite should go around your window size. Play with it and you should be able to make it go up and down if this is what you want.
B
11
S
1
Posts: 42
Reputation: 565

Previous

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ChesVCF, OBLIVION, shinkan, Solomon, yiuyiu6666 and 25 guests