How to create actors on the very left and right of camera?

gb346

  • Posts: 243
Im trying to create actors that appear on the left and right of my actor, regardless of the resolution my game is being played on, so that there position is never abslolute, how can i do this?>

JeffreyDriver

  • *
  • Posts: 2169
Use attributes to record the position of your main actor, then use with figure in the other two actors to position them, using plus or minus calculations as needed. For example, to position the left player you would create a drawing event and set the position to 'X of (Main Actor) - (whatever value you need)'. For the right actor it would be 'X of (Main Actor) + (whatever value you need)'.  You'll also need to set the Y value too.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

gb346

  • Posts: 243
im just struggling on how to get it on the right side.

For e.g: for the left side of camera i just do "create actor at x of camera + 10" which just creates the actor to the left side of the camera + 10 pixels. How do i do the same with the right? (create actor at x right of camera - 10)

LIBERADO

  • *
  • Posts: 2660

« Last Edit: December 01, 2016, 12:26:00 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

gb346

  • Posts: 243
thankyou liberado perfecto :D