Bug Issue: Direction inconsistency


Pages: 1

beepyeah

  • Subscriber - Stencyl Studio
  • *
May 12, 2022, 07:43:28 pm
Hi there, when I get the direction for my actor, it now returns different values than it used to.

0 degrees is still 0 degrees, and 90 degrees is still 90, but 270 comes back as -90, 180 as -180

My game requires comparison of directions for certain features. In the documentation, it says directions are a value 0-360. In the editor, i can't even set an actors properties to anything outside that range. And yet when I try to read the direction of the player actor, I get these weird results.

I wondered if this was introduced in a recent version because it used to work fine.


Justin

  • Master Stencyler
  • *
May 14, 2022, 10:36:10 pm
It was likely unintentional then. For a quick fix yourself, you can do (remainder of (player direction + 360) / 360)


Pages: 1

Details

  • Reported
    May 12, 2022, 07:43:28 pm
  • Updated
    May 14, 2022, 10:36:10 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    (none)

Tags