A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS3 inverts my numbers 0.o

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    22

    AS3 inverts my numbers 0.o

    if (this.y > safeHeight)
    {
    trace("gameover")
    }

    when i trace the numbers when they are -60.9287861565656 and 106 and the gameover trace doesn't fire
    but when its -141.63330922995166 and 28 it fires and i have no idea why O.o

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    What numbers?
    Where is the code that is doing all of this?
    Last edited by fruitbeard; 08-15-2014 at 02:24 PM.

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    22
    i got it thx fruitbeard for reply! I am using starling and for some reason it wont read coordinates in -, so i just added a variable that tracks the y coordinate and check the condition with it

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center