[SOLVED]Make an object move through a fixed and random track

Get help using Construct 2

Post » Fri Jun 05, 2015 1:40 pm

Alright, it's 40x26. :D
B
38
S
9
G
3
Posts: 258
Reputation: 4,326

Post » Fri Jun 05, 2015 3:35 pm

What kind of movement do you need? (Those red points i added as example. Player do not uses them to move)

That one?

Image
------------------------

Or that?

Image
I'm a Magician, not a Developer.
B
22
S
8
G
25
Posts: 106
Reputation: 14,294

Post » Fri Jun 05, 2015 4:40 pm

As the first image, @XpMonster. :D

Image

But I note that the grid is invisible on stage. Then I think both are useful for what I want. ^^
B
38
S
9
G
3
Posts: 258
Reputation: 4,326

Post » Fri Jun 05, 2015 7:32 pm

@lukezero
The fact it's isometric doesn't make it any different to regular path following.

Here's a way to do it:
https://dl.dropboxusercontent.com/u/542 ... ollow.capx

It just moves toward the next waypoint. At the start and when the targeted waypoint is changed the distance is calculated in a variable. As the sprite move the distance is reduced by the same amount, and when the distance variable becomes negative we know the waypoint was passed so we target the next waypoint.
B
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

Post » Fri Jun 05, 2015 8:03 pm

R0J0hound wrote:@lukezero
The fact it's isometric doesn't make it any different to regular path following.

Here's a way to do it:
https://dl.dropboxusercontent.com/u/542 ... ollow.capx

It just moves toward the next waypoint. At the start and when the targeted waypoint is changed the distance is calculated in a variable. As the sprite move the distance is reduced by the same amount, and when the distance variable becomes negative we know the waypoint was passed so we target the next waypoint.


Great example, great @R0J0hound, mainly because you didn't use any behavior to do so.

Thanks one more time for your collaboration! :D
B
38
S
9
G
3
Posts: 258
Reputation: 4,326

Post » Fri Jun 05, 2015 8:08 pm

Actually, i didn't use any behavior too.

That is good example of point-movement, but that's absolutely useless for isometric games (And that's exactly what i created).
I'm a Magician, not a Developer.
B
22
S
8
G
25
Posts: 106
Reputation: 14,294

Post » Fri Jun 05, 2015 8:24 pm

XpMonster wrote:Actually, i didn't use any behavior too.

That is good example of point-movement, but that's absolutely useless for isometric games (And that's exactly what i created).


@XpMonster, dude, your CAPX with the movement for isometric games ready yet? :D
B
38
S
9
G
3
Posts: 258
Reputation: 4,326

Post » Fri Jun 05, 2015 8:27 pm

Almost.

As always - I got a "little" carried away.
I'm a Magician, not a Developer.
B
22
S
8
G
25
Posts: 106
Reputation: 14,294

Post » Fri Jun 05, 2015 8:31 pm

XpMonster wrote:Almost.

As always - I got a "little" carried away.


No problem, man.

When you finish, feel free to post it here.

Thanks again for your cooperation. :D
B
38
S
9
G
3
Posts: 258
Reputation: 4,326

Post » Fri Jun 05, 2015 9:07 pm

Of course, i'll keep working on this for myself, there is still a LOT to do.

https://dl.dropboxusercontent.com/u/39210620/Isometroid.capx
I'm a Magician, not a Developer.
B
22
S
8
G
25
Posts: 106
Reputation: 14,294

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: amazingdream, Huemerson, matrixreal, ultrafop and 20 guests