Thread: canbecarried;
View Single Post
  #4  
Old 02-20-2011, 11:39 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Well here's how I would consider doing it...

- Make a carryable class.
- Add onActionGrab functionality
- Set player's ani to a lifting animation and store the image name of the object somewhere for use in the animations.
- Have a system to keep the player's animation set to carry with the proper image.
- Check if the player pressed the key to throw the object, throw the object if necessary.
- Perform whatever needs to be done to make the object lay on the ground again.
__________________
Quote:
Reply With Quote