help with picking up and placing objects

Non-platform specific questions.

help with picking up and placing objects

Postby tlah » Thu Nov 13, 2008 10:26 pm

hi, its me again. anyway, i'm creating a legend of zelda game, and when the boss dies, he drops an amulet. i get how to do that part, but how do i get link to pick the amulet up and when the user presses space, have him place the amulet on a pedestal? :?: :?
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: help with picking up and placing objects

Postby jimmynewguy » Thu Nov 13, 2008 11:28 pm

ok....
-make a variable call amulet
-then on collision of amulet actor destroy it
-on destroy actor make amulet variable = 1
-make an activation region on the pedestal
-when player collides with the region enable key down
-then on collision fisnish disable it
-then for the region make key down space

Code: Select all
if(amulet == 1)
{
amulet = 0;
CreatActor("amulet");
}


if that helps (and you can understand it) lol
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: help with picking up and placing objects

Postby tlah » Sat Nov 15, 2008 2:28 pm

jimmynewguy wrote:ok....
-make a variable call amulet
-then on collision of amulet actor destroy it
-on destroy actor make amulet variable = 1
-make an activation region on the pedestal
-when player collides with the region enable key down
-then on collision fisnish disable it
-then for the region make key down space

Code: Select all
if(amulet == 1)
{
amulet = 0;
CreatActor("amulet");
}


if that helps (and you can understand it) lol

thanks, ill let you know when i need any more help!
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron