This makes it easier to do wacky stuff like 360 curves and such.
So I started making this game, and it is kind of working. As long as I draw flat surfaces and don't do curves, it works like a charm.
Now obviously this isn't what I was intending, I want to do wacky things.
This code is in my players key left event (I duplicated it for the key right event).
if(!place_meeting(x-4,y,obj_map)){
x = x - 4;
exit;
}
var yy;
yy = 0;
while(yy < 32){
if(!place_meeting(x-4,y-yy,obj_map)){
x = x - 4;
y = y - yy;
exit;
}
yy = yy + 1;
}
Now this is the code I believe that won't let me go over curves and stuff.
My collision code is this (in case you want it):
y = yprevious;
if(place_meeting(x+1|x-1, y,obj_map)){
x = xprevious;
}
move_contact_all(direction,-1);
What do you think is wrong?



This topic is locked







