How do I isometric platformer movement

Get help using Construct 2

Post » Wed Sep 23, 2015 9:10 am

Hi, I know there are a lot of posts about isometrics. But most of them seems to be about z-ordering and stuffs. I want to make an isometric game like ZigZag for android. How do i create a good looking movement with jumping? Here is a test capx i threw together. If you look at the capx i'm sure you see what it is i'm trying to achive.
https://drive.google.com/uc?export=download&id=0B-fFT9zZyH3CQ0R5TjFLaDhOa1k

I've been trying a bunch of differnt methods but none seem to work the way i want. Thanks for the help.

DetteMan
B
11
S
4
G
2
Posts: 116
Reputation: 1,936

Post » Wed Sep 23, 2015 11:13 am

Maybe take a look at @R0J0hound behavior: http://www.scirra.com/forum/viewtopic.php?f=153&t=153967
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Wed Sep 23, 2015 12:15 pm

Thanks @phimaka
But I already tried that one and it's also mostly about z-ordering. It's a very good behavior though
B
11
S
4
G
2
Posts: 116
Reputation: 1,936

Post » Wed Sep 23, 2015 5:15 pm

Have you looked at the examples? There is an example of a platform movement.

You can use the iso "move by offset" action to move the ball, and the "iso overlaps" condition with the "push out" action to make it stop at walls.

Up and down motion can be done like in iso_test3b.capx, events 11 to 13.
You basically just need a vertical velocity (or as in the capx a z velocity "vz").

The motion is simple:
Every tick:
--- subtract gravity*dt from vz
--- iso move by offset (0,0, self.vz*dt)

iso overlaps by offset(0,0,0)
--- iso push out
--- set vz to 0
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Wed Sep 23, 2015 6:02 pm

Thanks @R0J0hound
I will try that once I get home. I only tried the first example. It might be a lot more to this behavior than what I thought.
B
11
S
4
G
2
Posts: 116
Reputation: 1,936

Post » Thu Sep 24, 2015 4:44 am

Hey, it worked better than what I was aiming for. This behavior was just to good! Thanks @R0J0hound for the best behavior ever. And thanks @phimaka for showing me the way.
B
11
S
4
G
2
Posts: 116
Reputation: 1,936


Return to How do I....?

Who is online

Users browsing this forum: Fenix18, tarek2 and 55 guests