ID:175224
 
How do you make your character walk to an item and after picking it up stay there, whenever I try doing this he always jumps back to where he started.
Maybe if you showed some code, it would be easier to see what the problem is. As it is now, I can't help you because I don't understand the problem.
In response to Starwarspower
Sorry about that, this is what im usin:

obj
Food
icon = 'Food.dmi'
Click()
usr.Move(src.loc)
src.loc = usr
In response to ShadowBlade6300
ShadowBlade6300 wrote:
Sorry about that, this is what im usin:

obj
Food
icon = 'Food.dmi'
Click()
usr.Move(src.loc)
src.loc = usr

change it to this:
> obj
Food
icon = 'Food.dmi'
Click()
usr.Move(src.loc)
del src

The src.loc = usr contradicts the usr.Move(src.loc) because its saying the food goes to the usr and the usr goes to the food so when the usr gets the food, it goes back up to pick it up (I think). Also you need to have the del src so when the usr gets the food, it dissapears. I hope this works :)

~starwarspower
In response to Starwarspower
Still doesnt work =(
In response to ShadowBlade6300
hmm.. sorry i can't help you, you have to ask some one with more knowledge than me. Or check the demos.
In response to ShadowBlade6300
Here, I think this is what you're looking for:

obj
Food
icon = 'Food.dmi'
Click()
walk_to(usr,src,0,0)//Makes the usr walk to the obj.
src.Move(usr)//Moves the Food to the usr's contents.