Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(3 edits) (+1)

well the game was very good but the controls need some work you see the forward direction should be the direction its pointed to

 hers's the code for that

extends KinematicBody2D 
export (int) var speed = 200 
var velocity = Vector2() 
func get_input():     
    look_at(get_global_mouse_position())     
    velocity = Vector2()   
    if Input.is_action_pressed("down"):         
        velocity = Vector2(-speed, 0).rotated(rotation)     
    if Input.is_action_pressed("up"): 
        velocity = Vector2(speed, 0).rotated(rotation)
    if Input.is_action_pressed("left")
        velocity = Vector2(0,speed).rotated(rotation)  
    if Input.is_action_pressed("right")
        velocity = Vector2(0,-speed).rotated(rotation)
func _physics_process(delta):     
get_input()     
velocity = move_and_slide(velocity)

you can update the game after the voting period ends

Thanks a lot for the suggestion. I'll try to implement that later.