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
how can i teleport a player when hit by an enemy
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#6
RE: how can i teleport a player when hit by an enemy

(02-09-2014, 01:42 AM)Mudbill Wrote: Well, it actually won't because as soon as the if statement passes (first time at 75 health), return is called which makes it not loop anymore.

I suggest not running this loop until you spawn the monster, for the sake of performance. Then I'd also change the timer countdown to 0.1 seconds to actually make sure the player is teleported instantly and not after one second.

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
02-09-2014, 02:35 PM
Find


Messages In This Thread
RE: how can i teleport a player when hit by an enemy - by Wapez - 02-09-2014, 02:35 PM



Users browsing this thread: 1 Guest(s)