Creating an isometric platformer

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ThiefOfPringles
Prole
Posts: 17
Joined: Fri Feb 26, 2016 1:42 pm

Creating an isometric platformer

Post by ThiefOfPringles »

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.
Attachments
z2.5Diso.love
(28.17 KiB) Downloaded 260 times
Last edited by ThiefOfPringles on Sat May 27, 2017 2:53 am, edited 1 time in total.
User avatar
OnACoffeeBreak
Prole
Posts: 28
Joined: Tue Apr 11, 2017 11:19 am

Re: Creating an isometric platformer

Post by OnACoffeeBreak »

I'm getting "Error: main.lua:66: attempt to call global 'max' (a nil value)" whenever I press the space bar.
ThiefOfPringles
Prole
Posts: 17
Joined: Fri Feb 26, 2016 1:42 pm

Re: Creating an isometric platformer

Post by ThiefOfPringles »

OnACoffeeBreak 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.
should work now, just redownload it
User avatar
Fezezen
Prole
Posts: 1
Joined: Thu Jul 13, 2017 5:24 pm

Re: Creating an isometric platformer

Post by Fezezen »

Pretty cool, I've been trying to figure out something like this out for a little while.
Ostego160
Prole
Posts: 14
Joined: Tue Oct 17, 2017 7:18 pm

Re: Creating an isometric platformer

Post by Ostego160 »

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
I like this idea. I've accomplished it before by doing it this way:

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.
KayleMaster
Party member
Posts: 234
Joined: Mon Aug 29, 2016 8:51 am

Re: Creating an isometric platformer

Post by KayleMaster »

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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 30 guests