How do I slide menu/graphic?

Get help using Construct 2

Post » Wed Sep 04, 2013 5:03 am

I want to have an object slide in like a menu or graphic. How do I do this without using bullets or sines? Is it possible to do a loop that moves it 1 pixel every x seconds? When I do this, it moves instantly to position 2 without animating in between position 1 and 2.
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

Post » Wed Sep 04, 2013 5:56 am

Something like this?

https://www.dropbox.com/s/faaj6lehaj7pzez/menuslide.capx
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Wed Sep 04, 2013 6:06 am

Yup. Like that. Thanksjook002013-09-04 06:08:36
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

Post » Wed Sep 04, 2013 6:09 am

Chrome. But you can just set it to the browser you normally use.
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Wed Sep 04, 2013 6:09 am

Now how do you do it with easing?
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

Post » Wed Sep 04, 2013 6:10 am

How about trying rex moveto behaviour?

http://www.scirra.com/forum/behavior-moveto_topic44845.html
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Wed Sep 04, 2013 1:26 pm

You could use lerp for movement--it's what I use for my menus. If variable menuout=1, and if menu.x is less than 300, set menu.x to lerp(menu.x, 300, 2*dt) or something similar.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Wed Sep 04, 2013 2:51 pm

@c4sp3r89

How do i slide/menu using drag and drop?
Thanks!
B
9
S
2
Posts: 82
Reputation: 914

Post » Thu Sep 05, 2013 3:08 am

Sorry, I do not understand what you mean. If you want to use drag&drop then the menu won't slide any more.
B
17
S
8
G
4
Posts: 93
Reputation: 3,190


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests