Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'blink' teleportation
#1
We all know states 400 and 401.
Woody's teleports.
But what if you want something more useful?
If you check out the download I posted on the 8000 rudolf topic, there's a character I made called CCBN (with unaltered bandit sprites), who upon pressing D will teleport a certain distance.
It's quite simple really;

Code:
<frame> 397 telestart
next: 398  dvx: 200  dvy: 0 wait: 0
<frame_end>

<frame> 398 telend
next: 999  dvx: -1  dvy: 100
<frame_end>

That way, you move 200 pixels forward instantly, and the 2nd frame is for the stop; you basically use up all the momentum to run yourself at the ground, thus stopping.
Reply
Thanks given by:
#2
Yes thats right and it works well i cant find any bugs with it but i will use this code:

<frame> 397 telestart
next: 398 dvx: 200 dvy: 0 wait: 0 etc
<frame_end>

<frame> 398 telend
next: 999 dvx: 550 dvy: 0
<frame_end>

instead of this code:

<frame> 397 telestart
next: 398 dvx: 200 dvy: 0 wait: 0
<frame_end>

<frame> 398 telend
next: 999 dvx: -1 dvy: 100
<frame_end>
Becouse that dv?: 550 stops all movement in that direction and if you want it to go to the crouch frame after the teleport just use next:
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#3
Nevertheless mine takes less know-how ^_^
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)