EightySeven
12-04-2008, 07:03 PM
hey ya'll. been trying to figure this out fer a while and its still not clicking for me.
all I want is for my guy to be able to determine which tile hes on. if hes on a ground tile i want himt to know "Hey i'm on a ground tile" if hes on some spikes i want it to know hes on some spikes.
From what I can tell the code has taken my code, which i will graphically depict as horizontal with the = sign, and has turned it to look like this ||
SO when u step off of 0,6 (ground) the next one should be 0,6(ground) BUT the code appear to be reading it at 6,0(ground) the next one 6,1 which is nothing. If u keep walking u hit the center line of ground and eventually the bottom ground. once u pass that your off the map and it throws errors.
I'm basing my code on this engine (http://www.emanueleferonato.com/2008/10/14/new-tile-based-platform-engine-as3-version-updated-to-step-10-plus-scrolling/#more-573) but Doing everything in 1 big'ol heap isn't my style so i'm trying to break it up and make it so i can work with it.
please feel free to fix any of my other poor programming, but please make a comment where u changed something.
all I want is for my guy to be able to determine which tile hes on. if hes on a ground tile i want himt to know "Hey i'm on a ground tile" if hes on some spikes i want it to know hes on some spikes.
From what I can tell the code has taken my code, which i will graphically depict as horizontal with the = sign, and has turned it to look like this ||
SO when u step off of 0,6 (ground) the next one should be 0,6(ground) BUT the code appear to be reading it at 6,0(ground) the next one 6,1 which is nothing. If u keep walking u hit the center line of ground and eventually the bottom ground. once u pass that your off the map and it throws errors.
I'm basing my code on this engine (http://www.emanueleferonato.com/2008/10/14/new-tile-based-platform-engine-as3-version-updated-to-step-10-plus-scrolling/#more-573) but Doing everything in 1 big'ol heap isn't my style so i'm trying to break it up and make it so i can work with it.
please feel free to fix any of my other poor programming, but please make a comment where u changed something.