• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

topdown car mechanics

M

mr_starfire

Guest
Hi guys im making a small side project because im losing interest in my long term project (i always do this)
my game is a small car game with a basic drifting mechanic but my cars handling feels quite icelike i have twaeked my code quite a lot but cant get the feeling quite right

here is my code (its very basic)

if speed>1 steerable=1
if speed<1 steerable=0

image_angle = facing_direction
{
if
keyboard_check(vk_left) && steerable = 1
facing_direction+=4
}
{
if
keyboard_check(vk_right) && steerable = 1
facing_direction-=4
}
if
keyboard_check(vk_up)
motion_add(facing_direction,+1)
friction = 0

if
!keyboard_check(vk_space)
friction = 0.3

if speed >12 speed =12

if
keyboard_check(vk_down)
friction +=0.3

any advice guys ?
 
M

mr_starfire

Guest
ignore this thread guys i just found that although my handling is highly unrealistic its tons of fun
 
Top