Issue with bounding boxes
So I have this actor on my scene, he controls the camera, jumps and move to the right forever... All fine but sometimes he bumps into something invisible, like if i had not aligned well enough the floor (72x72) and if I press jump he'll leap over it and continue but, he does not stops always at the same spot, changing his velocity made him stop at some different spots of the straight line of blocks I made. Do you guys have any idea what my actor is bumping into? I'm sure no invisible blocks are on his way too... anyways thank you in advance
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Best Answers
-
sparkania Posts: 300
if it does not appear to be anything obvious, look in the Layers list of things your player is slated to collide with. scroll through them and check each one visibly on the stage. chances are you have an actor on the stage which you may have forgotten about. it might be behind something in your scene making it impossible to select with your mouse. -
Socks London, UK.Posts: 12,822
. . . like if i had not aligned well enough the floor (72x72) . . .
If your floor actors (presumably a tile) are 72 pixels by 72 pixels (and there are lots of them) they are using a relatively large chunk of memory for what they are.
The smallest chunk of memory you can allocate to a 72 x 72 pixel image is 128 x 128 pixels.
If they were 64 x 64 they would come to 4,096 pixels.
At 128 x 128 they are using up 16,384 pixels of memory.
Basically if you could reduce their size to 64 x 64 you would save around 75% of the memory needed for your (currently 128 x 18 pixel) floor images.
Hope all that makes sense ! -
Socks London, UK.Posts: 12,822
... anyways here is the "test build". http://mavw.tumblr.com/games
Yes, your floor elements look a little misaligned. Just double click on each one and make sure all the Y co-ordinates are the same.
(or cut and paste a [Change Attribute - Self.Pos Y to XXXX] into each of the floor actors)
Answers