jayjay42
06-19-2008, 10:28 PM
Hey guys, im relatively new to actionscript but I catch on fairly quickly... and atm I am trying to do a sort of maze game, but don't really know the collision command.
I have seen lots of tutorials on it but none have really helped me much, so I have two questions for anyone out there who can help:
1. I can get the actionscript so that if you click the arrow keys the 'block' of mine will move in the correct direction, but how do i make it so it 'slides' rather then jumps? So if I click the left arrow key it will keep sliding to the left until it hits something, which will make it stop?
2. How would I make it so my 'block' when it collides with a 'wall' it will stop moving in the direction it is going?
If anyone can answer my questions it will be greatly appreciated! Thanks for listening!!!
JayJay42
I have seen lots of tutorials on it but none have really helped me much, so I have two questions for anyone out there who can help:
1. I can get the actionscript so that if you click the arrow keys the 'block' of mine will move in the correct direction, but how do i make it so it 'slides' rather then jumps? So if I click the left arrow key it will keep sliding to the left until it hits something, which will make it stop?
2. How would I make it so my 'block' when it collides with a 'wall' it will stop moving in the direction it is going?
If anyone can answer my questions it will be greatly appreciated! Thanks for listening!!!
JayJay42