what am i doing wrong (i am a beginner)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avalkova

extends AnimatableBody2D

var gravity = 30
var move_vector = Vector2.ZERO
var jump_strength = 500

func _ready():
pass # Replace with function body.

func _process(delta):
move_vector.y += gravity*delta
move_vector.y = -jump_strength

func rotate_bird():
if(move_vector.y < 300):
rotation_degrees = - 15
var clamped_velocity = clamp(move_vector.y, 300, 570) - 300
rotation_degrees = clamped_velocity / 3

spamming same similar questions Hi guys can somebody spot the mistake i have an my script - Archive - Godot Forum

Moreus | 2023-03-09 17:30

You need to describe the task at hand, what is the problem, and how you are trying to solve it to help people help you. Showing us code is meaningless, because we don’t know what you are trying to do.

godot_dev_ | 2023-03-09 18:05