move all spawned actor to the center of screen ??

Yob Games

  • Posts: 20
i spawneed 3 actor (blue red and yellow ) in random position in the screen
now i want to move all spawnedd actorr  to the centerr of screen
pleeaaaaze hellp 

noxtudios

  • Posts: 293
use the screen width and height blocks and actor width / height

Actor x   = (Screen width - Actor width) / 2
Actor Y = (Screen Height - Actor Height) / 2

Yob Games

  • Posts: 20
but how to move it ? what i have touse ?  excuse i'm new on stencyl

noxtudios

  • Posts: 293
you could use the tween blocks under actor, move to location using the above calculations

Slide actor to X / Y etc