Okay I am making a side scroller and I am having trouble with sensing the walls. Mostly just on the top of the character. If you jump and hit a wall above you, you start glitching around up and down. I am doing it with sensors for top, bottom, left, and right. How can I fix my problem? help?!!!?!
Last edited by Shin23 (2011-07-10 18:06:49)
Offline
If you have a custom sensor for all sides (good job, btw ) I imagine it has something to do with the actual scripting itself. What is your script for the top sensor? That might help figure out what the problem is. Also, how many pixels tall is your top sensor bar and how far is it from the top of the sprite?
Last edited by Harakou (2011-07-10 18:22:13)
Offline
Harakou wrote:
If you have a custom sensor for all sides (good job, btw
) I imagine it has something to do with the actual scripting itself. What is your script for the top sensor? That might help figure out what the problem is. Also, how many pixels tall is your top sensor bar and how far is it from the top of the sprite?
I have the sensor broadcasting when it touches the color of the wall, and then the character moving down when it receives the broadcast. Also the sensor isn't very wide, should I make it bigger?
Offline
Shin23 wrote:
Harakou wrote:
If you have a custom sensor for all sides (good job, btw
) I imagine it has something to do with the actual scripting itself. What is your script for the top sensor? That might help figure out what the problem is. Also, how many pixels tall is your top sensor bar and how far is it from the top of the sprite?
I have the sensor broadcasting when it touches the color of the wall, and then the character moving down when it receives the broadcast. Also the sensor isn't very wide, should I make it bigger?
I'm not sure, but it could be that your side sensors are touching the top and activating those scripts. To test that theory, just temporarily deactivate their scripts.
Offline