Guest User

handleSprites()

a guest
Dec 10th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | Gaming | 0 0
  1. function handleSprites(){
  2. //Get face
  3. image_xscale = (opponent.x > x)?1:-1
  4. face = image_xscale
  5.  
  6. //Assign sprites
  7. switch(argument0)
  8. {
  9. case GLACIUS:
  10. sp_idle = sGlaciusIdle
  11. sp_walk = sGlaciusWalk
  12. sp_crouch = sGlaciusCrouched
  13. sp_jump = sGlaciusJump
  14. sp_fall = sGlaciusFalling
  15. sp_land = sGlaciusLanding
  16. sp_atk = [sGlacius_lPunch, sGlacius_mPunch, sGlacius_hPunch, sGlacius_lKick, sGlacius_mKick, sGlacius_hKick]
  17. sp_airAtk = [sGlacius_alPunch, sGlacius_amPunch, sGlacius_ahPunch, sGlacius_alKick, sGlacius_amKick, sGlacius_ahKick]
  18. break
  19.  
  20. case KITANA:
  21. sp_idle = Kitana_Idle
  22. sp_walk = Kitana_Fwd
  23. sp_jump = Kitana_Jump
  24. sp_fall = Kitana_Jump
  25. break
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment