Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] "Behind" Teleportation
#2
Link to a frame with a next: -### and the frame it links to should have a state: 400.

The next: -### makes your character face away from your opponent, which means you'll teleport behind the nearest enemy (teleport = your character appears x pixels (240 iirc) from the opponent, but it's always dependent on the way your character is facing).

E.g.
Index:
Sharp point = the way character is facing; the way the enemy is facing is irrelevant.
Red = enemy.
Green = you.

Situation:
> <

next: -###
< <

state: 400
< <

I can't simplify the explanation any more, so I hope it's clear to you what I'm talking about :)

PS: I don't think using the next: -### and state: 400 in a single frame will work (you'll teleport in front of the enemy and face away :P), but you can just split it up into two frames with a wait: 0 anyway. Make sure you reverse 1 sprite in your spritesheet, though, 'cause of the effect of next: -### .

PSS: The method I've described is the easy way. You can use a ball that'll hold the enemy on an unique coördinate and give your character an ik:8 with those coördinates to guarantee that you'll teleport behind that specific enemy, but it's pretty unneccessary to code that unless you use a ranged attack to determine what enemy to teleport behind to.

Edit: Goddammit! You made me lose the game D:
RAGE!!!
My projects:
=> Comet - LF2 ver.1.9/1.9c skin.
=> CRE - ComboRegenerativeEnemy.

Contact me if the links to my projects become unavailable.
Reply
Thanks given by:


Messages In This Thread
[solved] "Behind" Teleportation - by 1477 - 05-28-2009, 09:19 PM
RE: "Behind" Teleportation - by JossuaDC - 05-28-2009, 09:49 PM
RE: "Behind" Teleportation - by 1477 - 05-29-2009, 12:41 AM
RE: "Behind" Teleportation - by JossuaDC - 05-29-2009, 07:46 AM
RE: "Behind" Teleportation - by 1477 - 05-30-2009, 03:13 AM
RE: "Behind" Teleportation - by Azriel - 05-30-2009, 08:08 AM
RE: "Behind" Teleportation - by 1477 - 05-30-2009, 05:34 PM
RE: "Behind" Teleportation - by Ascor - 06-02-2009, 09:31 AM
RE: "Behind" Teleportation - by JossuaDC - 06-03-2009, 11:17 AM
RE: "Behind" Teleportation - by Ascor - 06-03-2009, 11:30 AM



Users browsing this thread: 1 Guest(s)