Hi I hope you will help me I’m trying to fix this issue I do not know how to make the object score fixed in a position(on the camera ) that makes it shown even the main object moves ?
The easy, friendly way, is to put the Score object on a new layer (e.g. HUD), and put the HUD layer above the Base layer, that’s all
The hard way is to set the score position = camera position + offset, every frame, something like:
Conditions: No conditions (Always)
Actions: Do = Camera.X() + 100; Camera.Y() + 50 to the position of Score
Not sure if Camera.X(); Camera.Y() return the topleft camera position, or the camera center, if the score object is shown in the center, maybe the right code is:
Conditions: No conditions (Always)
Actions: Do = Camera.X() - Camera.Width()/2 + 100 ; Camera.Y() - Camera.Height()/2 + 50 to the position of Score
Put it on a new layer. Setting the score position every frame is wasteful.
Yeah I know, just like to give options, I don’t know why, I can’t resist