Navigation

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

    Sprite visibility bug..or feature?

    Bug Reporting (FUZE 4 Nintendo Switch)
    7
    11
    305
    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.
    • pianofire
      pianofire Fuze Team @SteveZX81 last edited by pianofire

      @SteveZX81 That sounds like an almost philosophical question. Maybe it is in stealth mode?

      1 Reply Last reply Reply Quote 1
      • Martin
        Martin Fuze Team last edited by

        I think it is perfectly reasonable that you might want a sprite to be invisible but still considered for all actions.

        what I did was to removeSprite(sprite)

        but since I'm accessing sprites from arrays I would then get errors. I forget the actual text, something like "can't do that to a non-sprite" so I took a tip from Will's great Super Mega Blaster and created a sprite at the start called "nullSprite" and after removing the sprite, I assigned it to nullSprite.

        So...

        // Somewhere early on...
        nullSprite = createSprite()
        
        // Later on...
        removeSprite(spriteA)
        spriteA = nullSprite
        

        As for the question of whether this is a bug or by design, I didn't dwell on it at the time and as soon as I saw that the sprite still responded as though it was visible I just did the above and moved on.

        1 Reply Last reply Reply Quote 0
        • Jongjungbu
          Jongjungbu F last edited by

          So the question is if this is by design or not I suppose?

          1 Reply Last reply Reply Quote 0
          • Martin
            Martin Fuze Team last edited by

            I can verify but I would hope it is by design as I might well want an enemy to be able to go into stealth mode

            1 Reply Last reply Reply Quote 0
            • Dave
              Dave Fuze Team last edited by

              It's by design. It is only setting visibility, nothing else. You can remove the sprite with removeSprite(), which will get rid of collision and all :)

              1 Reply Last reply Reply Quote 0
              • Jongjungbu
                Jongjungbu F last edited by

                I would suggest creating your own extra variable then @SteveZX81, like mySpriteCollideAble[i] = true or false.

                1 Reply Last reply Reply Quote 0
                • SteveZX81
                  SteveZX81 F last edited by

                  okay, sorry guys. my mistake

                  Martin 1 Reply Last reply Reply Quote 0
                  • Martin
                    Martin Fuze Team @SteveZX81 last edited by

                    @SteveZX81 said in Sprite visibility bug..or feature?:

                    okay, sorry guys. my mistake

                    Not your mistake at all - just needed clarification!

                    1 Reply Last reply Reply Quote 0
                    • M
                      MikeDX last edited by

                      @SteveZX81 Definitely not your mistake! It's a documentation issue which I'm going to raise an issue for to correct!

                      1 Reply Last reply Reply Quote 2
                      • sys64738
                        sys64738 F last edited by

                        I have just been moving them off screen when I don't need them. . Finding a way off screen to see all these happenings always intrigued me in th ed 80's was like escaping into the code

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post