Make games on your phone.
Get the app!
AndroidiOS
Castle
3 Comments
Next up
Like they say ..it's #pollkit #and #funk #funkynight #fnf #fnftesting #test #animation #animationmeme #castle
is a test for copying the text on the computer to the phone...if you ask what is this code...it's a small code for the player path...and if you ask what is this (print("I potatoes")) Let me tell you that this is all I can do on castle with coding.....
fire1Reply
What is that?!
fire1Reply
extends KinematicBody var speed = 25 var gravity = -50 var jump_force = 50 var velocity = Vector3() onready var player = get_node("/root/Spatial/player") func _physics_process(delta): var direction = player.global_transform.origin - global_transform.origin direction.y = 0 direction = direction.normalized() velocity.x = direction.x * speed velocity.z = direction.z * speed if is_on_floor(): velocity.y = 0 var height_difference = player.global_transform.origin.y - global_transform.origin.y if height_difference > 3 and height_difference < 60: velocity.y = jump_force else: velocity.y += gravity * delta velocity = move_and_slide(velocity, Vector3.UP) Small code for player :)
Reply