MY GOAL:
Create a pseudo-3D environment with an isometric perspective and allow jumping onto platforms with different heights. This uses HardonCollider for collision and the platform's collision shouldn't push the player away so long as the player is high enough.
MY PROBLEM:
When ever the player object attempts to jump onto a higher platform from the ground, it gets pushed away.
Creating an isometric platformer
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 17
- Joined: Fri Feb 26, 2016 1:42 pm
Creating an isometric platformer
- Attachments
-
- z2.5Diso.love
- (28.17 KiB) Downloaded 296 times
Last edited by ThiefOfPringles on Sat May 27, 2017 2:53 am, edited 1 time in total.
- OnACoffeeBreak
- Prole
- Posts: 28
- Joined: Tue Apr 11, 2017 11:19 am
Re: Creating an isometric platformer
I'm getting "Error: main.lua:66: attempt to call global 'max' (a nil value)" whenever I press the space bar.
-
- Prole
- Posts: 17
- Joined: Fri Feb 26, 2016 1:42 pm
Re: Creating an isometric platformer
should work now, just redownload itOnACoffeeBreak wrote: ↑Sat May 27, 2017 12:50 am I'm getting "Error: main.lua:66: attempt to call global 'max' (a nil value)" whenever I press the space bar.
Re: Creating an isometric platformer
Pretty cool, I've been trying to figure out something like this out for a little while.
Re: Creating an isometric platformer
I like this idea. I've accomplished it before by doing it this way:ThiefOfPringles wrote: ↑Fri May 26, 2017 6:14 pm MY GOAL:
Create a pseudo-3D environment with an isometric perspective and allow jumping onto platforms with different heights
Each object has a "z" which is 0 when grounded as well as a "height" (I see you have started on this). Then give each object a zMin which is zero when grounded(initialized). Then on the event collision check the player z against the object height, if it passes make the zMin the objects height, and thus the limit at which it can fall.
If you don't make this check at the time of collision and you apply the dx,dy collision resolution, your character will simply be pushed away by the vector.
I will see if I can dig up some code but I hope this helps.
-
- Party member
- Posts: 234
- Joined: Mon Aug 29, 2016 8:51 am
Re: Creating an isometric platformer
Isometric is just a projection.
Code your entire game in top-down view and then just apply the transformation to the draw.
That's how I made this: https://giant.gfycat.com/AnguishedLazyEquine.webm
That way you're going to deal with the easiest collisions - rectangles.
Of course, if you want jumping you will have to make a pseudo-z, but it's not that hard.
Code your entire game in top-down view and then just apply the transformation to the draw.
That's how I made this: https://giant.gfycat.com/AnguishedLazyEquine.webm
That way you're going to deal with the easiest collisions - rectangles.
Of course, if you want jumping you will have to make a pseudo-z, but it's not that hard.
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 3 guests