Simple sprite movement?

Get help using Construct 2

Post » Mon Jan 23, 2012 1:23 pm

I just want to do some basic things with my menus and a few in-game sprites. A dialog box sliding in from below, or buttons and text sliding in from offscreen for example. By themselves w/o input from the player.

I tried using some dt expressions but that seems needlessly complicated for some simple automatic movement and I couldn't figure out how to stop them from moving either. animating this in seems wasteful too. Any help?
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Mon Jan 23, 2012 1:49 pm

lerp is your friend. It is a system expression, you should experiment with it. There are a couple tutorials for it, too, hit the search box, apparently it works now.

Tis a good day.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,180

Post » Mon Jan 23, 2012 2:36 pm

Thanks, I'll mess with it but I seriously doubt math will ever be my friend.

Would anyone be able to provide a simple example using this method with what I want to do? Would make learning this a whole lot easier.
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Mon Jan 23, 2012 5:34 pm

For reference:

Explanation of lerp - LINK
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,310
Reputation: 71,084


Return to How do I....?

Who is online

Users browsing this forum: Felipiwi and 26 guests