How do I set image position to imagepoint

Get help using Construct 2

Post » Wed Sep 13, 2017 3:33 pm

As a reeeaaally quick example, heres a CAPX.
I'm loading a bunch of positions to an array, including angle, then lerping to them and once there I increment a global variable and update the position.

You could also add in invisible marker sprites with ID's instead of having them in an array.
You could dynamically define the points in the array.
You could just use regular animation.

Any of the above would work ;)

Anyway, heres the capx https://drive.google.com/open?id=0B5cW0 ... HNiY1drLUk
Image
Keeghan McGarry | Managing Director
Facebook-Website
B
14
S
3
Posts: 77
Reputation: 1,081

Post » Wed Sep 13, 2017 5:05 pm

Thank you so much @KeeghanM
This is great a great help
How can i move bunny continually without stopping at points ?
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Wed Sep 13, 2017 5:26 pm

Use something other than the lerp function. The lerp has an "Ease In - Ease Out" effect. I just used it as it was simple to implement.
Image
Keeghan McGarry | Managing Director
Facebook-Website
B
14
S
3
Posts: 77
Reputation: 1,081

Post » Wed Sep 13, 2017 5:55 pm

i think litween can work here
arrays values set to litween target and its done
i will try this and i will tell if it works
i will do it tomorrow
here is late night
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Thu Sep 14, 2017 5:37 am

@KeeghanM
I am getting a problem while editing your capx
I set lerp towards x to nextBunnyX & y
you can see what is happening bunny moving quickly from 1st position
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests