minor stuff
This commit is contained in:
+4
-1
@@ -16,7 +16,8 @@ extends CharacterBody2D
|
||||
|
||||
|
||||
const SPEED = 130.0
|
||||
const JUMPt_velocity = -360.0
|
||||
var JUMPt_velocity = -360.0
|
||||
var org_jump_veloc : int
|
||||
var on_pipe = false
|
||||
var right_pipe = false
|
||||
var left_pipe = false
|
||||
@@ -69,6 +70,7 @@ func _unhandled_input(event):
|
||||
|
||||
func _ready():
|
||||
color_rect.visible = false
|
||||
org_jump_veloc = JUMPt_velocity
|
||||
pipedetector_ground.position.y = 0
|
||||
collision_shape_2d.shape.height = 15
|
||||
|
||||
@@ -85,6 +87,7 @@ func _process(delta):
|
||||
if on_pipe and (Input.is_action_just_pressed("crawl") or crawl) and is_on_floor() or right_pipe and (Input.is_action_pressed("move_right") or t_velocity > 0):
|
||||
pipe_sound.play()
|
||||
crawl = false
|
||||
on_pause = true
|
||||
t_velocity = 0
|
||||
color_rect.visible = true
|
||||
pipe_timer.start()
|
||||
|
||||
Reference in New Issue
Block a user