Hey all
This is killing me, so I would really deeply appreciate help on this one because I have tried everything in my limited knowledge to get this to work. This isn't a cop out, I want to understand why it's not working, I'd love to have the code provided so that I can see it working but I'm interested to learn not just be provided.
This is what I'm trying to do, a really, really simple "bullet" with the following rules:
1. Bullet must shoot down the line when the 'A' key is pressed
2. Moving the camera should not interfere with the bullets path after 'A' has been pressed.
3. When the bullet hits the wall, it must reset to the cameras position
4. Only one bullet at a time should be released.
5. If the bullet hits an object it must reset to the cameras position.
This is my code so far:
if keystate(30)=1 then position object 20, camera position x(1), camera position z(1), camera position y(1)
set object to camera orientation 20
move object 20, 10
The bullet is object 20 and the camera that I move with the arrow keys is camera 1.
At the moment as soon as the game loads the bullet just runs away, it's not in sync with the camera orientation at all and it doesnt wait for the keystate=1 either.
It does however detect the wall:
if object collision (20, 1) then text 300,100, "wall 1"
but it wont reset to the camera's position after colliding with the wall
if object collision (20, 1) then point object 20, camera position x(1), camera position z(1), camera position y(1)
I'm at a lost... As I say any help would be great! Thanks in advanced
www.bensimms.co.uk