Dead Eye
Member
Hello everyone and thank you for your help!
So this one is simple, I have a racing game and I want to detect if the object is in a collision with the road or the ground (goes slower on the ground and faster one road). What command would I use to do this? This is what I've tried.
However, it isn't detecting it. Any help would be apreciated,
thanks again.
So this one is simple, I have a racing game and I want to detect if the object is in a collision with the road or the ground (goes slower on the ground and faster one road). What command would I use to do this? This is what I've tried.
Code:
if tilemap_get_at_pixel(ground,x,y)
top_spd = 4
else if tilemap_get_at_pixel(road,x,y)
top_spd = originalspeed
thanks again.