WIP Physics Platformer

Post your own tutorials, guides and demos.

Post » Tue Jun 02, 2009 7:30 pm

This is an early build of a physics-based platformer. So far, the player can control the blue box with the wasd keys. I'm having problems, however, when it comes to Construct detecting an overlap between the blue player-box and the orange boxes. When the player lands on them, they are unable to move. Any help would be appreciated.

NOTE: partly out of laziness and partly as an experiment, the player (the blue box) can only move when touching the ground (that means no moving mid-air). Let me know what you think.

Controls:
A-left
D-right
W-jump

Can be downloaded here:

http://gamejolt.com/open-source/games/p ... -demo/252/
B
2
G
3
Posts: 22
Reputation: 894

Post » Tue Jun 02, 2009 8:42 pm

Never mind, I just found out what the problem was (the collision box for the orange box was per-pixel instead of boundary box). Feel free to comment anyway!
B
2
G
3
Posts: 22
Reputation: 894

Post » Tue Jun 02, 2009 11:48 pm

well... also can't move while on an orange cube.
you might want to take care of that :shock:
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Wed Jun 03, 2009 7:07 am

You're using plain "overlapping" events. I'm surprised it works at all. Those physics objects shouldn't be overlapping in the first place.

You should use Overlapping at Offset, you'll likely get more consistent results.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Jun 04, 2009 3:44 pm

Okey doke. Thanks!
B
2
G
3
Posts: 22
Reputation: 894

Post » Sat Jun 06, 2009 3:58 pm

I edited it a little.
B
2
G
3
Posts: 51
Reputation: 952

Post » Sun Jun 07, 2009 4:57 am

I liked how you move the box by flipping it end over end but the yellow boxes are pretty buggy.

Still, there could be some potential in it. Maybe not with moving enemies but it could be a fun little platform/puzzle game with some work.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302


Return to Your tutorials & example files

Who is online

Users browsing this forum: Megavolt and 0 guests