Actor picks up, then releases at certain location
Hi everyone and thanks for a super forum!
Im stuck at a point in my game development. What i want to achieve is this.
The actor/player picks up an object - the object gets attached to the actor when they collide.
So far soo good. BUT, when the actor returns to "homebase" i want the attached object to get unattached and positioned at the homebase. Cant seem to find out how to do this.
Any suggestions?
Thanks
F
Im stuck at a point in my game development. What i want to achieve is this.
The actor/player picks up an object - the object gets attached to the actor when they collide.
So far soo good. BUT, when the actor returns to "homebase" i want the attached object to get unattached and positioned at the homebase. Cant seem to find out how to do this.
Any suggestions?
Thanks
F
Comments
Rule: when
Event: overlaps/collides with actor player
--changeAttribute: self.Tags To: pickedUp
Rule: when
Attribute: self.Tags = pickedUp
--your constrain to player behaviors (or what ever you use to keep/show attachment)
Rule: when
Attribute: whatever used for condition when item is in base
--changeAttribute: self.Tags To: atBase
--either put your behavior and rules here or create a new rule for when Tags is atBase
@};- MH
Seems like the object wont be picked up now. Should the tags "pickedUp" etc be created as attributes first and if so what type? Never worked with tags in rules before except for collisions etc.
(you could instead do a changeAttribute: self.Name or even add a new attribute
(I like to use everything I have/can … to avoid adding extras to my work )
http://www.mediafire.com/?4f1vqw32f1yo0ot
@};- MH
Fiorentin
You're very very welcome!