It would be really nice if you could make collisions and all easier. I tried to make a maze game and it was really hard and even when it was done, it didn't really work. It would be cool if there was a way where you could just designate sections of the stage where certain sprites couldn't go.
Offline
First u make 2 new veriables, Old X and Old Y Then:
Forever:repeat until (touching color whatever or sprite): set old X to sprites'X, Set old Y to sprite's Y
if touching color (or sprite) whatever... set Sprte's X to old X and set sprite's Y to old Y
Offline
Do you mean collisions with walls or collisions with sprites that move like in racing? Collisions with walls is easy. Just do
<forever>
<if><touching color[
<move( -10 )steps>
The <touching color [ ]> block would be the color of the wall.
Sensors is a better way of doing it, but I'm not showing you how to do it now.
Collision for racing-type situations is very advanced. I have tried this before, and failed miserably. I suggest posting it in the "advanced topics" file. I suggest you go onto easier things first if you were thinking of that, because you are new.
Offline
TimeFreeze wrote:
Do you mean collisions with walls or collisions with sprites that move like in racing? Collisions with walls is easy. Just do
<forever>
<if><touching color[
<move( -10 )steps>
The <touching color [ ]> block would be the color of the wall.
Sensors is a better way of doing it, but I'm not showing you how to do it now.
Collision for racing-type situations is very advanced. I have tried this before, and failed miserably. I suggest posting it in the "advanced topics" file. I suggest you go onto easier things first if you were thinking of that, because you are new.
Problem with that is that then the sprite bonces,and if you use veriables it gets complitacted, using my technic is alot easier :p
Offline