Here's is my positioning utils .
I've renamed all the block tags, so that they won't collide with the scale extension utility on which it was loosely based not so long ago. The proble is that for those who downloaded the version at
http://community.stencyl.com/index.php/topic,46621.msg260348.html#new , it won't be totally compatible so you can download the in between version , look for the blocks with TODEL in the behaviours and exchange them with the good version.
Manual In Progress ...
getScale : get scale percentage for actor ( same as in scale extension)
scaledCoord get scaled coord ( different than scale extension there's x-left,x-middle,x-right, y-top y-middle y-bottom on the scene / on the screen)
offset : coordinates for scaled points ( same as scale version)
scale: Scale in percentage ( same as scale version)
setScale: Scale in pixel, ( different than scale extension keeping ratios or not
scaledSize : in pixels ( same as scale version)
isScaled: ( same as scale version)
+++ added blocks
setScaledCoordsetRealSize: Set real size (not scaled size) useful when actor is attached to image instance ( not tested with collisions, shouldn't work)
setHeightAndWidth : Grow size depending on point ( made to bypass the grow system which doesn't work when actor is set to not move)
fitActorInRectangle: change actor's size so that it fits into a rectangle. If can grow, it will be able to grow the actor ( SHOULDN'T WORK YET )
getOriginPointActor : current origin point for actor
setOriginPointActor : set current origin point for actor. After the tween block, you have to set it the old one because of bugs with collisions
setXActor : scaled/non scaled x-left, x-right, x-middle from bottom/middle/top of screen ( in the future, scene and camera too)
setYActor : scaled/non scaled y-top, y_middle, y_left from bottom/middle/top of screen ( in the future, scene and camera too)
xForActor same as set x actor except that it doesn't set it but just returns the theorical value , useful in the slide tween
yForActor same as setY actor except that it doesn't set it but just returns the theorical value , useful in the slide tween
getSizeActorType get size for default animation for actor type
setXActorFromActor set x middle, x-left , xright depending of another actor x middle x right x left
setYActorFromActordestroyActor : destory actor, doesn't recycle it, must be used with actors created with createActorFromImgInst or which has use setRealSize
createActorFromImgInst: create actor from img inst ( not tested with collisions, shouldn't work), great for labels ! ( should also work with stencyl's version of labels, I use my own version)
isActorInsideActor : returns percentage of actor inside bigger actor for non rotated actors
All suggestions are welcomed
