Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / platform help

Author
Message
ModySan
15
Years of Service
User Offline
Joined: 16th Feb 2009
Location:
Posted: 16th Feb 2009 20:59
hi ..
i'm making a platform game , and i need help ..
as a test i made a plane (floor) , cube(character ) , and another big cube (block/platform)
i made a Bool var called " gravity" .. if it's set to 1 , it will move down , while 0 will mean it won't move down

i dunno what to do really , i could do it in 2d in a simple way , but in 3d it's really .. dosen't work ..
any ideas?
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 16th Feb 2009 23:00
What doesn't work?
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Feb 2009 23:11
ModySan
15
Years of Service
User Offline
Joined: 16th Feb 2009
Location:
Posted: 17th Feb 2009 00:54
well , i don't know from where to start , it's not like i'm a noob or so -_-

but well , it goes like this ,
i can't think of suitable 3d event that will lead the gravity var be set to 0 , in 2d i was checking if there is an object below it , but since we are in 3d , there are more into that , so iam confused.

what i need , simply , are ideas .. share some of your experience with me , that's it , i still insist to write the code by my own and i already have some EXP in darkGDK , but what i miss here is the experience with gravity law in 3d ...
so ya .. any ideas?
(i simply need simple ideas , like as i said a way to set gravity to 0 )
Gatorules
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location:
Posted: 17th Feb 2009 04:24 Edited at: 17th Feb 2009 04:25
perhaps...



if this works for you you may want to account for the size of the character by saying for example objectX+objectsizeX<platformX or you player will fall through part of the platform. this is untested so i hope it works and also will only work for square platforms.

Login to post a reply

Server time is: 2024-11-25 13:47:50
Your offset time is: 2024-11-25 13:47:50