I still dont nkow how movement character

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

Someone can help me to fix this ?! enter image description here

If you can explains please explaind to me, i still dont undersand

![HOW to fix this ?

:bust_in_silhouette: Reply From: kidscancode

Note: Your image link was broken, so I edited your post to fix it.

There are a couple of problems here:

  • There should be no . after if in GDScript

  • is_action_pressed() is a method of Input: Input.is_action_pressed()

You can see several examples of simple movement like this here: 2D Movement overview

It is also highly recommended that you read through the official tutorial, found here:

My friend still can’t do it, even though I copy paste from the official tutorial

Zhinonia | 2019-06-14 15:53

That’s not something I can respond to. Error messages can be explained. Incorrect code can be addressed. There’s no suggestions to be made to “still can’t do it” other than try and read the tutorial again and follow more carefully. Did you do the “Your First Game” section?

kidscancode | 2019-06-14 16:48