Yes I get that, but I'm sure I would have to relate it to the mouse/touch position, because if you click and spawn, it's only relative to the game or actor's position. I need to spawn actors wherever I touch.
I would create two actors, one is the background. Create two attributes TouchX and TouchY.
Then in the background actor add a rule:
Actor receives event Touch is pressed.
Add Change Attribute game.TouchX to game.Mouse.PositionX and a second change attribute game.TouchY to game.Mouse.PositionY and then add a Spawn Actor relative to scen and position game.TouchX and game.TouchY.
Comments
Then in the background actor add a rule:
Actor receives event Touch is pressed.
Add Change Attribute game.TouchX to game.Mouse.PositionX and a second change attribute game.TouchY to game.Mouse.PositionY and then add a Spawn Actor relative to scen and position game.TouchX and game.TouchY.
That should do it.
S
You can just have the background actor and when touch is pressed spawn X by touch1X and Y by touch1Y relative to scene.
S