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
Is it possible to teleport when enemy hits you?
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#19
RE: Is it possible to teleport when enemy hits you?

(08-18-2011, 09:52 PM)Acies Wrote:
(08-18-2011, 09:29 PM)Your Computer Wrote:
(08-18-2011, 09:19 PM)HumiliatioN Wrote:
(08-18-2011, 06:29 PM)Acies Wrote: you could use the GetPlayerHealth(); and bind it to a variable. Then have a timer check after collision wheter that variable has been lowered.

Can you show me that script? I need this now! I dont know how to do this... Too confusing for me.

If you were to consider that method, you should take into consideration situations where the player is careless enough to hurt themselves (e.g. falling off tall platforms). You'd also have to take into consideration that enemy damage randomizes. It might one time take some damage off the user, take most damage off the user, or kill the user in one hit.

The falling would be an issue. At least if it wasn't an obvious spot from which the player fell, in that case you could place a script area at the bottom of the fall which redefines the health variable. The amount of damage the monster does would not matter, as any given difference would result in a teleport. The only issue would be death, but that could perhaps be solved by checkpoints?

There is not any falling. Just when "Bad Dream begins" I woke up hallway then monster begans to chase me then front and behind the monster doors are locked only way to teleport and survive is face the monster and I have "Full health and sanity" then One hit and WUMP teleport happens.

I dont know just how to script this one.

“Life is a game, play it”
08-18-2011, 10:09 PM
Find


Messages In This Thread
RE: Is it possible to teleport when enemy hits you? - by HumiliatioN - 08-18-2011, 10:09 PM



Users browsing this thread: 1 Guest(s)