Isometric Engine.

0 favourites
  • 7 posts
From the Asset Store
Make your dream action platformer game effortlessly with this template!
  • I'm currently working on a isometric engine for my game. I've made quite some progress with the engine but i've run into a problem with the engine.

    The tallest pillar seems to defy the logic of my engine.If someone could look into what the problem with my logic is, I'd be thankful.

    Edit: I've fixed the issue.

    Edit: It seemed the problem was fixed.. >.< anyway here's the file if anyone wants to give it a try.

  • I can't seem to add hyperlink to my above post.

    IsoEngine

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • komalrajsingh, Very nice job so far! Although it seems the problem still exists...

    I believe the problem occurs when the sprPlayerPosition is overlapping more than one ElevatedBox. If that is the case, it only works correctly if it happens to pick the taller box. But that isn't always the case.

    I changed the code so that it always picks the taller one (by doing a For Each loop by descending ZHeight and then exiting the loop after the first one). I also eliminated some unnecessary code. Like pinning, you are always setting the sprPlayer position anyway, so there really isn't a need to constantly pin it and unpin it. Also, on your "Else" blocks, you don't need to repeat the condition from above (unless you were doing it for readability). In the Jump block you were checking if the sprPlayer is falling, but it is always falling because it is never actually standing on solid ground.

    Using the Platform behavior was a creative way of adding a "jump" ability to your player. Someone yesterday in the forums was asking how to do that, and I like the way you did it!

    You can see my version at: rieperts.com/games/forum/Xekorn2.capx

  • komalrajsingh,

    pics or video?

  • AllanR, many many thanks for your help. I didn't know it was just that simple and also for looking into the code.

  • So, i'm gonna post the progress on the engine here. Maybe someone will find a better way to do what I did or find a completely new way to do what I did or even better, add new features.

    IsoEngine

  • I've added shadow to the engine. Though the shadow won't go below 20 so that it'd easy to find the player's position on the ground.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)