Simply add a qualifier to the wall sensing, specifying that you are going in a certain direction.
For instance, if you are using velocity, you can do something like this:
http://img828.imageshack.us/img828/7279/scriptxa.gif
Note: this example is a one way wall that you can go through when going left, but can't go through when going right. Change the velocity > 0 to < 0 to reverse it.
If you are not using velocity, you can do something like this:
http://img580.imageshack.us/img580/6850/script.gif
And simply don't add that qualifier into the opposite direction's script.
Last edited by Kileymeister (2012-01-15 18:15:57)
Offline
Well, my game has randomly bouncing bubbles that say
forever glide (3) secs to x: <pick random (-250) to (250)> y: <pick random (115) to (-180)> glide (3) secs to x: <pick random (-250) to (250)> y: <pick random (115) to (-180)> end
Last edited by Firedrake969 (2012-04-23 21:39:17)
Offline