hey i have a cool adition for your code grin

downside the code line who you have write
Code:
if(heroallowMove == 1)



make this here
Code:
if(my.SPEED_Z > 0)
{
DEBUG_VAR(my.SPEED_Z,30);
vec_set(toVec, vector(my.x, my.y, my.z + 18 ));
// trace UP to it from our origin position:
COLLISION_UP = c_trace(my.x, toVec, TRACE_FLAGS | IGNORE_FLAG2 | SCAN_TEXTURE | USE_BOX);
}
else
{
COLLISION_UP = 0;
}
 
DEBUG_VAR(COLLISION_UP,50);	
if(COLLISION_UP != 0)
my.SPEED_Z = 0;



and in the begin of the action make
Code:
var COLLISION_UP = 0;




its make a trace from he ca. middle to ha higer place and if this trace contact with something above hem if he Z_SPEED = 0 and he fall down

and know have the player collision to the things upside from hem
=)

Last edited by tagimbul; 03/21/16 16:51.

meine website mit 3dgs sachen =) //noch nicht ganz umgebaut ^^"
http://flashbreaker.com/home.html
und mein YT channel mit diversen game entwicklungs videos, vor allem shader zeugs
https://www.youtube.com/user/tagimbul/videos