Hello!
I try to make gliding at walls with this code:
if place_meeting(x+1*sign(hspeed),y,oWall)
{
while !place_meeting(x+1*sign(hspeed),y,oWall)
{
vspeed = (device_get_tilt_x() * hsp);
}
vspeed=0
}
if...
Hi Everyone,
Does anyone know a good way to create a no movement buffer in a device_get_tilt movement system.
Movement buffer might not be a good term to describe what I'm looking for. But ...
I'm trying to switch sprites to an idle state when the player has stopped moving.
My problem is that...
Hi All,
So I'm working on an android game with tilt functions.
device_get_tilt _x()*hSpd ; device_get_tilt _y()*vSpd;
Everything works great.
I add a collision event and set the player vSpd to 0 when place_meeting. Works great. The player stops.
if (place_meeting(x,y, obj_solid)) { vSpd = 0; }...