I really need help finding this one
Sprite.UID?
I know that is there but I need to save it to a variable, should have mentioned that XD
Set variable to sprite.uid?
If you know which sprite you mean, you should be able to tell c2 which sprite you mean..
Can you give more detail about what you are actually trying to do ?
Alright sorry guys haha.
So I have a sprite that when you click it another sprite appears and then it sets the sprites X and Y to the mouse (as though you were moving it) and when you click it, it creates a new sprite that I can't see the UID of because it isn't created in the engine only in the game itself. I need to find out how I can target that 1 new sprite so that all the other sprites of the same sprite don't move to Mouse X and Y only the new object does. I hope this makes sense
Develop games in your browser. Powerful, performant & highly capable.
On click:
You can move the sprite whose UID matches your variable "GlobVariable"
On click: - system create sprite on "layer" (Mouse.x, mouse.y) - system set GlobVariable to sprite.uid You can move the sprite whose UID matches your variable "GlobVariable"
- system create sprite on "layer" (Mouse.x, mouse.y)
- system set GlobVariable to sprite.uid
That worked, thanks
Gotta admit the scirra community are amazing