Isometric Engine.

Get help using Construct 2

Post » Sat Feb 01, 2014 10:40 am

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.

komalrajsingh2014-02-01 16:41:13
B
4
S
1
Posts: 23
Reputation: 621

Post » Sat Feb 01, 2014 4:40 pm

I can't seem to add hyperlink to my above post.
IsoEngine
B
4
S
1
Posts: 23
Reputation: 621

Post » Sun Feb 02, 2014 1:08 am

@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: www.rieperts.com/games/forum/Xekorn2.capx
B
94
S
33
G
20
Posts: 438
Reputation: 17,615

Post » Sun Feb 02, 2014 4:04 am

@komalrajsingh,

pics or video?
B
81
S
32
G
23
Posts: 1,053
Reputation: 35,965

Post » Sun Feb 02, 2014 7:03 am

@AllanR, many many thanks for your help. I didn't know it was just that simple and also for looking into the code.
B
4
S
1
Posts: 23
Reputation: 621

Post » Sun Feb 02, 2014 8:39 am

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
B
4
S
1
Posts: 23
Reputation: 621

Post » Sun Feb 02, 2014 5:29 pm

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.
B
4
S
1
Posts: 23
Reputation: 621


Return to How do I....?

Who is online

Users browsing this forum: varr and 3 guests