How do I Make a sprite go back and forth.

Get help using Construct 2

Post » Sun Aug 30, 2015 7:45 pm

Message: somersetjc is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
I want to make my sprite go back and forth vertically. Here is a link to the .caproj file so you can see what I tried.
B
3
Posts: 3
Reputation: 181

Post » Sun Aug 30, 2015 8:17 pm

give your object the Sine Behavior...

(you would have to post a .capx file for any one to test it out. the caproj file is only some of the code - not enough to open and test a project.)
B
96
S
33
G
20
Posts: 438
Reputation: 17,665

Post » Sun Aug 30, 2015 10:52 pm

I used the sine behavior but I want to make it go up and down through the entire layout and not just part of it and i can't find out how to do that.
B
3
Posts: 3
Reputation: 181

Post » Mon Aug 31, 2015 2:53 am

@somersetjc

Ah, for that you could give it bullet behavior, set the speed and angle of motion and initial coordinates. Then place invisible detector sprites at the top and bottom of the layout. When the object hits a detector, reverse the angle of motion.
B
96
S
33
G
20
Posts: 438
Reputation: 17,665

Post » Mon Aug 31, 2015 12:34 pm

Thank you that worked.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: ST314 and 32 guests