Just move sprites from point A to B with an event?

Get help using Construct 2

Post » Tue Sep 18, 2012 3:54 pm

Hi ,
is it possible to apply a vehicle Behavior..?
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Tue Sep 18, 2012 5:58 pm

If you don't want to use any plugin but still wanted easing, I think it can be done like this

https://dl.dropbox.com/u/55358831/tween-without-plugin.capx

Just implement any penner equation you wanted.
http://gizma.com/easing/ -> some of those equation
http://www.robertpenner.com/easing/ -> original one
lunarray2012-09-18 18:01:40
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Tue Sep 18, 2012 6:41 pm

Thanks for all your replies people.

lunarray: that's quite a lot of variables and stuff! :) Thanks for that reference website too.

nimtrix: seems much simpler.

I'm going to try both approaches see which one doesn't make my non-math-non-programming brain explode. :)

Like nutmix said, I'm VERY surprised such a feature hasn't been implemented yet in C2. I mean, it's meant to be used by people with little to no programming/maths skills and for the creation of videogames which involves movement of sprites.

Anyways, thanks again to all.TheDev2012-09-18 18:49:34
B
4
Posts: 41
Reputation: 407

Post » Wed Sep 19, 2012 3:08 am

Why can't you just use the sine (vertical/horizontal) behavior? Figure out which magnitude and period give you the result you want and set it to active via an event when you want it to; then tell system number of seconds to wait before telling sine to be inactive.
B
14
S
5
G
4
Posts: 121
Reputation: 3,938

Previous

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], kamens503 and 26 guests