How do I offset a spawned actor to mouse position?
JCFord
Member Posts: 785
On a mouse click I am spawning an actor as follows:
SPAWN
POSITION: game.Mouse.Position.X
POSITION: game.Mouse.Position.Y
This works fine so wherever I click the actor will spawn right in the centre of the mouse click. I now want to offset this actor so it is above the mouse click by say 25 pixels. I have tried various combinations such as POSITION: game.Mouse.Position.Y +25 but nothing seems to work?
SPAWN
POSITION: game.Mouse.Position.X
POSITION: game.Mouse.Position.Y
This works fine so wherever I click the actor will spawn right in the centre of the mouse click. I now want to offset this actor so it is above the mouse click by say 25 pixels. I have tried various combinations such as POSITION: game.Mouse.Position.Y +25 but nothing seems to work?
Comments
It works perfectly for me when I just tried it.
Thanks
I created a new project just to test this and it's the same problem
Any ideas?
Note: bombs and blocks where made to explode using the blast tutorial.
How do i make it spawn unlimited bombs? Or is my problem just a bug?
just made it immovable and it fixed the issue.