[solved] How to set up x of actor to x of mouse?

1MrPaul1

  • *
  • Posts: 1285
I'm trying to make something like a cursor now, but have a problem with it, because "x of mouse" block gives x coordinates on screen but I need x coordinates on scene for "set x" block. How to solve this problem?

« Last Edit: November 29, 2011, 10:30:55 am by 1MrPaul1 »

Alexin

  • *
  • Posts: 3130
Add the camera's location to the mouse coordinate and use the resulting point to set the actor's location.
"Find the fun"
alexin@stencyl.com

1MrPaul1

  • *
  • Posts: 1285
Thank you Alexin! It's working! :)