3d movement with collisions

Post your own tutorials, guides and demos.

Post » Tue Jun 10, 2008 3:10 pm



Hi again, this is a relatively simple example I made showing how a 3d movement can be achieved in Construct.

To test if two 3d objects are overlapping, you can test for a collision between the player and the 3d box, which will select all the 3d boxes which are overlapping on the x and y axis, and then finally we use a bit of maths to compare the z values (as 2 boxes wont overlap if they are at different depths).

I individually move the player along the x, y, and z axis so I can easy push the player out of the walls along the x, y, and z axis, allowing the objects to smoothly slide around obstacles.

To edit the level, simply control drag on the 3d boxes and the player will interact with it properly :)

Heres a cap download link:
http://www.fileshack.us/get_file.php?id ... zzzy3D.cap
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Tue Jun 10, 2008 3:17 pm

David, that is extremely cool! It's functional and not too complicated looking! Outstanding work, this is very impressive! It was really fun moving around from platform to platform with this demo LOL
B
13
S
3
G
5
Posts: 286
Reputation: 3,193

Post » Tue Jun 10, 2008 4:50 pm

Wow...
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 10, 2008 4:50 pm

Wow, that looks/works great, and its even simple enough for me to understand! I might not get a chance to do it any time soon, but can I use/modify this code someday?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Jul 02, 2008 2:30 pm

Looks good, but for some reason, sometimes it's crashing, when I open, a message like the program did something and need to be closed(sorta like this, but it's not the message from the XP...)
But, it started working and it's really impressive... the power of construct is really impressive... :shock: Making a kind of GTA2 camera, in a pseudo 3d enviroment....

By the way, I'm brazilian, so I'm trying to speak english... sorry for anything...
B
2
G
4
Posts: 27
Reputation: 1,104

Post » Fri Mar 13, 2009 1:12 am

Link is dead.

stephen1980
B
2
G
3
Posts: 24
Reputation: 898

Post » Fri Mar 13, 2009 4:57 pm

almost an year bump u.u
B
2
G
3
Posts: 25
Reputation: 900

Post » Sat Mar 14, 2009 2:26 am

Sorry. Can someone re-upload? :|

stephen1980
B
2
G
3
Posts: 24
Reputation: 898

Post » Sat Mar 14, 2009 6:19 am

B
4
G
4
Posts: 24
Reputation: 1,248

Post » Sat Mar 14, 2009 3:13 pm

i think 3d box should have a global camera control, so that the view in something like this can be rotated easily and make an n64/psx type game
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests