Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enemy "Disappears" on Death
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#4
RE: Enemy "Disappears" on Death

(05-26-2012, 05:30 AM)iTech278 Wrote: Also, I have one more issue where I have an area set to make an entity active and play a sound when the player walks into it, and if I go to a different map and then back, the entity is still there, but the sound plays again if I walk into the area; this problem is not seen if I don't leave the map (the area deletes itself like it should).
Did you place the callback for that area in OnEnter()? If it is, place the callback in OnStart() instead.

If you really want it foolproof, create the callback after the player does something (pick up a key, etc.) and have that something be only done once. This may or may not be possible for your situation.

Dark Seclusion Here
05-26-2012, 08:08 AM
Find


Messages In This Thread
Enemy "Disappears" on Death - by iTech278 - 05-26-2012, 05:30 AM
RE: Enemy "Disappears" on Death - by Adny - 05-26-2012, 05:35 AM
RE: Enemy "Disappears" on Death - by iTech278 - 05-26-2012, 05:42 AM
RE: Enemy "Disappears" on Death - by iTech278 - 05-26-2012, 06:39 PM
RE: Enemy "Disappears" on Death - by FragdaddyXXL - 05-26-2012, 08:08 AM
RE: Enemy "Disappears" on Death - by iTech278 - 05-26-2012, 07:37 PM



Users browsing this thread: 2 Guest(s)