Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Can't get resolution_vector from collideSprites() Function to work

    Help
    2
    2
    108
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BattlEyeet
      BattlEyeet last edited by

      Hey all, just got FUZE4 today, and after about 3 hours of coding, I stumbled into an u fixable problem (at least for me). It seems that the *c.resolution_matrix is not an actual value, or is not yet implemented. I want to make a collision event where ```sprite collision = collideSprites(p1.sprite,p2.sprite)
      if spriteCollision.exist then
      setSpriteSpeed(p1.sprite, spriteCollision.a.resolution_vector)

      setSpriteSpeed(p2.sprite.spriteCollision.b. resolution_vector)
      endif```
      but I keep getting this error: Sprite contains no user variable named resolution_vector

      pianofire 1 Reply Last reply Reply Quote 0
      • pianofire
        pianofire Fuze Team @BattlEyeet last edited by

        @BattlEyeet Try this:

        c = collideSprites(spritea, spriteb)
        if c.exists then
          printat(0,0,c.resolution_a)
          printat(0,1,c.resolution_b)
        endif
        1 Reply Last reply Reply Quote 0
        • First post
          Last post