items help

Game Editor comments and discussion.

items help

Postby bobolicious » Wed Sep 21, 2005 3:48 pm

just wondering if its possible to pick up items to use and hold such as weapons if soo how would i do this
bobolicious
 
Posts: 5
Joined: Wed Sep 14, 2005 5:59 pm
Score: 0 Give a positive score

Postby Fuzzy » Wed Sep 21, 2005 10:07 pm

yeah, you'd need an array for an inventory, then put the weapons parent as the player, and use collision detection to handle the effects.

thats a simple direction, but maybe tricky to do as well.

You could also do a activation region containing actors representing the items carried. when the player accesses inventory, freeze the enemies, and combat controls, make the players actor invisible, and move him to the inventory area.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Chai » Thu Sep 22, 2005 3:08 am

1.you created Actor Item
2.Created Actor Player Actor control/ Add animation
-2.1 add animation normal(character did't hold item) and add animation hold the item (the picture is character hold item)
3.Event add collision event with item add action
Code: Select all
ChangeAnimation("Event Actor", "hold the item", FORWARD);

4. Finish
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest