hi GUI or UI layer for a score ( as text ) not working and score not moving . how can i fix it ? i did exactly what tutorials said . and slime not moving
https://imghostr.com/pD6F5qGy
https://imghostr.com/1P1MRD0k
https://imghostr.com/beLWqmxO
Are you sure the score is on the “UI” layer and the Dragon is not?
In the events you move the camera on the Base layer so I can’t really see any reason why the score is not moving.
The movement depends on the value of direction variable. It is either need to be “left” or “right”.
By default the value of the variable is an empty string “”, so it is nothing. Did you change that and set either “left” or “right” as the default value for this variable?
Or move the slime to collide with one of the arrows right at the beginning.
i`m score is on the “UI” , and as you see default value of the variable are “left” or “right” . can any one send me a project for it ? i am going to create windows edition instead of android
I don’t see in the events anywhere you set the value of direction “left” or “right” other than when you check the collision. But at the beginning the slime do not collide with anything so the default value is nothing as far as I can tell. Also I have just noticed on the screenshot you set the direction “right” both cases, you never set it to “left”.
Judging from the screenshot you are using GD4. Not sure why that is, but if you download GD5, the example is included there. Not many people using GD4 any more.
You can also have a look the example online if you can not or don’t want to use GD5:
tnx , i download gdevelop 5 beta 79 , idk why i had gdevelop 4 because i download this program 2 weeks ago from gdevelop site