solarice
Member
Hi,
Two not so quick questions.
Question 1 - Collision Detection.
To make this work can i use a transparent image of the walls etc that i dont want to be able to go through and layer that on top, or should i split the walls from my main image and layer that on top - so you have the floor being drawn then on top of that the walls, which id then add code to stop being able to pass through it. Or do i have to go about it a totally different way.
Question 2 - Sprite Control.
Im wanting to rotate sprites with button presses and have been been looking at the sin & cos sites amongst others. I understand the principal of it put putting it into practise is whats getting me. Ive read that the code should really be put in a "Fix Class" <-- what is this? and what does it look like.
another site says you should learn how to use floats before heading into classes. So which should i attempt to do and how do i go about it, just so you know the sprite in question will be the only moving object on screen.
Thanks Alot in Advance.
Two not so quick questions.
Question 1 - Collision Detection.
To make this work can i use a transparent image of the walls etc that i dont want to be able to go through and layer that on top, or should i split the walls from my main image and layer that on top - so you have the floor being drawn then on top of that the walls, which id then add code to stop being able to pass through it. Or do i have to go about it a totally different way.
Question 2 - Sprite Control.
Im wanting to rotate sprites with button presses and have been been looking at the sin & cos sites amongst others. I understand the principal of it put putting it into practise is whats getting me. Ive read that the code should really be put in a "Fix Class" <-- what is this? and what does it look like.
another site says you should learn how to use floats before heading into classes. So which should i attempt to do and how do i go about it, just so you know the sprite in question will be the only moving object on screen.
Thanks Alot in Advance.