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 ?
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 ?