Navigation

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

    2 sprites 1 player

    Beginners
    6
    24
    1238
    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.
    • waldron
      waldron F last edited by

      Sounds dodgy but all legit...
      I want to control 2 sprits as 1 player that can
      Move together and apart
      Figured I can use the d pad to control both and
      L JOYSTICK for p1 and R JOYSTICK for p2
      But I cant get 2 on screen

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

        Sorry, I don't think I understand the question. Are you saying you can't get 2 sprites on the screen at once? Because to do that you just create 2 and draw / update 2. Apologies if that's not what you mean?

        1 Reply Last reply Reply Quote 0
        • pobtastic
          pobtastic F last edited by MikeDX

          You mean like this?

          They would be two entirely separate sprites, they'd just happen to both be user controlled.

          waldron 1 Reply Last reply Reply Quote 4
          • waldron
            waldron F @pobtastic last edited by

            @pobtastic yes just like that !!!
            i want to have 2 robots ro and bo with separate and combined attributes/moves
            2d not top down tho
            kinda leaking my idea but im all about open source

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

              Bit off topic, but I love the Namco WSG3 sound cpu so much. Such an amazing sound!

              1 Reply Last reply Reply Quote 1
              • waldron
                waldron F last edited by

                also this technique can be used for a pinball game ect

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

                  @waldron said in 2 sprites 1 player:

                  @pobtastic yes just like that !!!
                  i want to have 2 robots ro and bo with separate and combined attributes/moves
                  2d not top down tho
                  kinda leaking my idea but im all about open source

                  Kinda like "Head Over Heels" where you can split the two characters and have completely seperate sprites, or they can be joined together and controlled as one? Or to pick something more recent - Luigi and Gooigi ? If so yeah, like @pobtastic says, it's just 2 sprites and you control them individually or dependent on state, together.

                  I'd personally use left and right sticks and when your characters are joined, either stick would take control. Perhaps click one of the sticks to toggle joint / individual control. I wouldn't go near the D-Pad. Not the best of controls in my opinion.

                  waldron 2 Replies Last reply Reply Quote 1
                  • waldron
                    waldron F @Martin last edited by

                    @Martin cheers man yeah click seems a better option.

                    1 Reply Last reply Reply Quote 0
                    • waldron
                      waldron F @Martin last edited by

                      @Martin said in 2 sprites 1 player:

                      Head Over Heels

                      geez just looked at head over heels that just gave me a huge flashback

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

                        (slighlty) off topic I used to love this game where you could two players with linked ships

                        waldron 1 Reply Last reply Reply Quote 3
                        • waldron
                          waldron F @pianofire last edited by

                          @pianofire haha i can see this being very frustrating

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

                            @waldron I like a challenge.

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

                              Space Duel was awesome fun!

                              1 Reply Last reply Reply Quote 1
                              • waldron
                                waldron F last edited by

                                Ro-bo concept gonna be a bugger to program but fun to animate

                                1 Reply Last reply Reply Quote 4
                                • waldron
                                  waldron F last edited by

                                  started animating the bots(sprites) ....
                                  is their a preference to loading them in e.g.

                                  createsprites()
                                  or
                                  loadImage=(image...)

                                  waldron 1 Reply Last reply Reply Quote 0
                                  • waldron
                                    waldron F @waldron last edited by

                                    @waldron said in 2 sprites 1 player:

                                    started animating the bots(sprites) ....
                                    is their a preference to loading them in e.g.

                                    createsprites()
                                    or
                                    loadImage=(image...)
                                    chrsheet=

                                    joinShapes() would i use this to join my 2 sprites together?

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

                                      No, that’s for primitives not sprites.

                                      There is no built in concept of joining sprites into bigger sprites. You simply need to track the fact they are in a joined state and move their X / Y coordinates together

                                      1 Reply Last reply Reply Quote 4
                                      • waldron
                                        waldron F last edited by

                                        still struggling with this iv managed to get 2 sprites on screen but then i broke it
                                        am i doubling up on code and which code, drawsheet ect
                                        img1 = loadimage (blah)
                                        img2 = loadimage (blah)

                                        location ......
                                        location...

                                        global scale.....

                                        waldron 1 Reply Last reply Reply Quote 0
                                        • waldron
                                          waldron F @waldron last edited by

                                          @waldron said in 2 sprites 1 player:

                                          still struggling with this iv managed to get 2 sprites on screen but then i broke it
                                          am i doubling up on code and which code, drawsheet ect
                                          img1 = loadimage (blah)
                                          img2 = loadimage (blah)

                                          location ......
                                          location...

                                          global scale.....

                                          any method of getting 2 sprites on screen would be a great help

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

                                            @waldron This example has several https://fuzearena.com/help/view/updateSprites

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