https://linen.dev logo
Join Discord
Powered by
# flixel
  • a

    ambitious-knife-25690

    02/22/2023, 2:29 PM
    so which if statement(s) gets stuck?
  • i

    important-egg-61899

    02/22/2023, 2:30 PM
    ok
  • i

    important-egg-61899

    02/22/2023, 2:38 PM
    yess
  • i

    important-egg-61899

    02/22/2023, 2:38 PM
    it works now
  • a

    ambitious-knife-25690

    02/22/2023, 2:38 PM
    niceee good job 😄
  • a

    ambitious-knife-25690

    02/22/2023, 2:38 PM
    what did you do?
  • i

    important-egg-61899

    02/22/2023, 2:38 PM
    so instead of playing the animation to loop once, I just make it constantly play the animation based on what speed you're at
  • a

    ambitious-knife-25690

    02/22/2023, 2:39 PM
    oh that's a nice solution!
  • a

    ambitious-knife-25690

    02/22/2023, 2:39 PM
    easier logic as well
  • i

    important-egg-61899

    02/22/2023, 2:39 PM
    well now I can get to actually making collision
  • i

    important-egg-61899

    02/22/2023, 2:40 PM
    don't be suprised if I'm on here again 😅
  • a

    ambitious-knife-25690

    02/22/2023, 2:41 PM
    feel free to come back
  • a

    ambitious-knife-25690

    02/22/2023, 2:41 PM
    no guarantees any of us will know answers tho 🤣
  • i

    important-egg-61899

    02/22/2023, 3:00 PM
    I'm also making it so if you're fast enough, then go the other way or stop holding the key, you skid like in the original sonic games
  • i

    important-egg-61899

    02/22/2023, 3:05 PM
    well the skidding works
  • i

    important-egg-61899

    02/22/2023, 3:15 PM
    uhh so I have a problem with collision
  • i

    important-egg-61899

    02/22/2023, 3:15 PM
    the sprites collide on the transparent pixels
  • i

    important-egg-61899

    02/22/2023, 3:18 PM
    maybe this can work?
  • i

    important-egg-61899

    02/22/2023, 3:19 PM
    nope
  • i

    important-egg-61899

    02/22/2023, 3:19 PM
    falls right through
  • s

    square-angle-35096

    02/22/2023, 3:31 PM
    you can resize the hitbox by doing `spr.width`/`spr.height`
  • s

    square-angle-35096

    02/22/2023, 3:31 PM
    if you open the debugger and press one of the buttons you can also see the hitboxes.
  • i

    important-egg-61899

    02/22/2023, 3:31 PM
    ok
  • i

    important-egg-61899

    02/22/2023, 3:31 PM
    wait but uhh what about slopes
  • s

    square-angle-35096

    02/22/2023, 3:31 PM
    slopes work (slightly)
  • s

    square-angle-35096

    02/22/2023, 3:32 PM
    not round slopes like sonic has
  • s

    square-angle-35096

    02/22/2023, 3:32 PM
    only ramp-like slopes
  • i

    important-egg-61899

    02/22/2023, 3:32 PM
    is it possible to add more than one hitbox to a sprite?
  • i

    important-egg-61899

    02/22/2023, 3:32 PM
    if so slopes are possible
  • s

    square-angle-35096

    02/22/2023, 3:32 PM
    if you want round stuff to collide you should use a physics library like https://austineast.dev/echo/
1...946894699470...9809Latest