How do I use Rex MoveTo

Get help using Construct 2

Post » Sun Mar 12, 2017 9:34 pm

Hi Everyone,

I like to know how can I run a series of moveto from point to point smoothly?

What I want to happen is when the game starts..2 seconds into the game..the sprite at location 0,0 will
moveto 100,100 then moveto 120,200 then moveto 140,300 then moveto160,400.

This is what I got:

Wait 0.75 seconds
MoveTo moveto to (100,100)
Wait 0.75 seconds
MoveTo moveto to (120,200)
Wait 0.75 seconds
MoveTo moveto to (130,300)
Wait 0.75 seconds
MoveTo moveto to (140,400)

Any help is greatly appreciated

Thank You.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Sun Mar 12, 2017 10:45 pm

Hi, I think you can use MoveTo's "On hit target position" condition:

On start | wait 2 seconds; Move object to (x1,y1)

On object hit target position:
>If position = (x1,y1) | move object to (x2,y2)
>If position = (x2,y2) | move object to (x3,y3)

...etc.

Hope that helps! :)
B
16
S
7
G
3
Posts: 395
Reputation: 3,693

Post » Mon Mar 13, 2017 12:02 am

B
33
S
18
G
28
Posts: 2,455
Reputation: 20,874


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, ketramtu18, MaujDeveloper and 9 guests