Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Set Origin point and Grow BUG


Pages: 1

RedEvo

  • Subscriber - Stencyl Studio
  • *
August 08, 2017, 06:40:27 am
Setting origin point not to Center and use Tween grow block to reduce or enlarge an actor cause a bug.
When you try to click to the actor after growing, click "square" is in the wrong place.

Attached you can find a game to test this bug:
0. number in upper left corner of the game increase only when you click on test image
1- press - 3-4 times to reduce image by 30-40%.
2- try to inside reduced actor near the upperleft corner, number does not increase
3- try to click outside bottom right corner and you can see clicknumber increase.
Something similar can be noticed when you grow to more than 100%, the click "square" seems shifted upper left.

I've noticed this bug also in the past but never go deep so I'm not sure about versions. I'm working on 3.5beta, last version.
« Last Edit: August 08, 2017, 06:42:32 am by RedEvo »


New attachment added by RedEvo - August 08, 2017, 06:41:34 am


RedEvo

  • Subscriber - Stencyl Studio
  • *
August 08, 2017, 09:31:58 am
Issue is in the calculation of offset in isMouseOver(). Actual function don't take care about scaling of origin point during Grow scaling . Results of yPos and xPos are the same indipentently by currOrigin declared in xml file. Grow scale is strictly related to currOrigin
« Last Edit: August 08, 2017, 09:42:51 am by RedEvo »


Pages: 1

Details

  • Reported
    August 08, 2017, 06:40:27 am
  • Updated
    August 08, 2017, 09:31:58 am

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments


* 1.swf (5463.49 kB, 640x480 - viewed 52 times.)