Stencyl 3.4.0 is now out. Get it now!

[ALPHA] Positioning Utils 1.1

yoplalala

  • *
  • Posts: 1412
Here is a new version.
Multiple changes
  - it should be compatible with Stencyl 3.5 ( tested on build 9654)
  - two blocks have been corrected ( ratioed width and ratioed height)

Feel free to tell me if there are any problems


LIBERADO

  • *
  • Posts: 2421
Thanks a lot. Does this new version only work for Stencyl 3.5? Can it also work for 3.4?
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

yoplalala

  • *
  • Posts: 1412

LIBERADO

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

LIBERADO

  • *
  • Posts: 2421
There is an important problem with the block to set the actor origin point.
When you set a new origin point, the position of the collision shape is also modified.
See this sample running with debug drawing enabled to see the collision shapes:

<a href="http://static.stencyl.com/games/37751-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/37751-0.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

yoplalala

  • *
  • Posts: 1412
Thanks ! I'll look at it . :)

If ever I do a new extension, I think I'll do a whole game of tests scenes to easily test all the blocks ... ( learning by experience ... ;) )

There were a few modifications on how actors work ( "set real size"  had to be modfied)  but didn't notice this one.

LIBERADO

  • *
  • Posts: 2421
Okay. For years I have seen users asking for the possibility of changing the actor origin point at runtime.
I think it is a very useful feature, so I hope you can fix it. Thanks in advance.  :)

« Last Edit: November 07, 2017, 05:03:11 am 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.

yoplalala

  • *
  • Posts: 1412
Yeah ! Done !
( in fact I remember I didn't know how to correct  it at the time I did the extension )

Was there a problem in simple physics too ?

LIBERADO

  • *
  • Posts: 2421
I have checked the v1.3 and it still does not work.
Now the result seems even worse:

<a href="http://static.stencyl.com/games/37765-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/37765-0.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

yoplalala

  • *
  • Posts: 1412

LIBERADO

  • *
  • Posts: 2421
Okay, I have checked the v1.4 and it works much better, although there is still an issue:

If you first set the origin point and later you grow the actor, then its collision shape remain in the correct position. But if you first grow the actor and later you set its origin point, then the position of its collision shape is slightly modified incorrectly.

« Last Edit: November 09, 2017, 08:49:11 am 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.

yoplalala

  • *
  • Posts: 1412
Now it should be okay :)

LIBERADO

  • *
  • Posts: 2421
I have checked the v1.5

Now, after growing an actor, its position suddenly changes when you set its origin point.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LIBERADO

  • *
  • Posts: 2421
These actors have been grown to 200%
See how their positions change when you set their origin points:
   
<a href="http://static.stencyl.com/games/37778-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/37778-0.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

yoplalala

  • *
  • Posts: 1412

« Last Edit: November 15, 2017, 02:30:30 am by yoplalala »