PDA

View Full Version : Please Help...its For An Assignment


TJ_13
05-18-2006, 05:11 AM
we're doing an Alice interactive world for and ICT assignment and i need a bit of help. i'm doing a shooting game and i'm having trouble making the gun move with the person while he's walking and also trying to make a method for shooting. i have made him walk turn and jump using keys up, left, right and z, but wat i want to do is make him able to shoot aliens using the key x and stuff... having heaps of trouble hope you can help

TJ

Jabberwocky
05-18-2006, 06:43 AM
To get the gun to move with you, set the gun's vehicle to the camera.

You can't create objects at runtime so for a bullet-flying-fiesta you'd have to keep a stash of bullets. Look at the thread Alice...Object Oriented?? (http://www.alice.org/community/showthread.php?t=124)

A good example of what you are doing is in the Share Worlds forum. See the thread A gun game and a dragon movie (http://www.alice.org/community/showthread.php?t=80). I believe the bullet is being reused over and over here.

PopnTheDeerInHumanForm
09-01-2007, 07:48 PM
I need help with That too 'Sams' hand is supposed to hit a target than come back but i can't get the target to react when hit

Razzle
09-03-2007, 09:00 PM
^ I would try using a method that calls the threshold function on an object