Stencyl 3.4.0 is now out. Get it now!

Question about Regions!

bluebean

  • Posts: 30
So i've been having a bit of trouble using regions.
Nothing too complex, but I can't for the life of me figure out why it's not positioning properly.





I want this region to follow her, which it does perfectly.

However, it doesn't center itself on her like I expected it too and I cant figure out why. Anyone have any ideas?

« Last Edit: September 04, 2017, 10:56:54 am by bluebean »

bluebean

  • Posts: 30
Not a single guess, huh?

LIBERADO

  • *
  • Posts: 2337
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

bluebean

  • Posts: 30
It's weird, No matter what numbers I plug into the X or Y it doesn't budge at all.

bluebean

  • Posts: 30
I have found a solution! Seems I have to make my actors origin point upper left, and not middle for the region to be in the middle of the actor.  :o

KaB00MxRHx

  • Posts: 30
where do you customize the origin point at ?
Work in progress: Rusty Floyd Shotgun : http://www.stencyl.com/game/play/37449

bluebean

  • Posts: 30

Right here! Mine were all set to center, which created the weirdness with the region box. Soon as I started to change them around, the region box also followed. Hope this helps anyone in the future with this problem.

BMJ

  • *
  • Posts: 273
bluebean, when you tried Liberado's suggestion, did you remove the 'make [region] follow [actor] block? I ask because even though you found a solution, changing the origin point of an actor's animation can have other, unintended consequences (like when you rotate or scale the actor).

bluebean

  • Posts: 30
I tried it with, and without the block. Cleaned the project multiple times, literally nothing worked, that box refused to adjust itself at all.