Navigation

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

    2d skateboard game

    Beginners
    18
    149
    26623
    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 @Jonboy last edited by

      @Jonboy Your making me go red, i think its down to the fuze 4 platform
      with its tutorials and the fuze arena site with a brilliant!!! community.
      Without this and you guys id be lost in a matrix of numbers and letters
      Honestly thank you because believe me i could not do this on my own.

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

        really need to get this motion sorted feel like its gonna be the hook i need to make it a fun and challenging game
        iv messed with the c.right and c.left adding allsorts to get my player to (roll) move and slowly slow down on its own
        with no joy any help would be greatly appreciated.

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

          @waldron hey, happy to have a look and give some suggestions if you'd like to share your friend-code and game?

          And just to confirm, you're looking to build in acceleration/deceleration and some Y axis movement?

          Awesome progress btw!

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

            @Tratax sweet iv shared it, my code is Waldron 6256-2637-1602

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

              @waldron said in 2d skateboard game:

              @Tratax sweet iv shared it, my code is Waldron 6256-2637-1602

              cheers yeah, acceleration/deceleration and some Y axis movement would be perfect

              Tratax 1 Reply Last reply Reply Quote 0
              • Zero Division
                Zero Division last edited by

                @waldron You're cooking with gas, my friend. Skateboard game looks awesome!

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

                  @waldron Whoa, you really nailed that animation, it's fantastic! Stylistically, it reminds me of an even better "Skate or Die" on the NES.

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

                    @waldron hey - have updated the code and favourited the edits with some suggestions, re-shared this if you want to take a look.

                    The way i think of it is the skateboard always running in a state of movement, initiliasing the movement speed lower and utilising an "acceleration" variable as a multiplier in small increments that increases to a max or decreases to a negative max depending on how fast you want to go only when the buttons are held

                    The else condition highlighted then exists for the purpose if nothing is presssed to reduce that acceleration variable until it reaches 0 - may need to be split out as I didnt try this with left movement you could use your c. left and right to count up or down on that multiplier possibly

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

                      Also, it's got a great feeling, keen to see how this progresses!

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

                        @Tratax legend thank you il have a gander now cheers man

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

                          @waldron All good! worth noting the camera movement speed also has the acc multiplier attached so that it can correctly match the speed of your skater

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

                            @Tratax great work man perfect, yes could go either way with this keep as is and keep flowing in one direction or fix the left to do the same as the right.
                            cheers man

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

                              @waldron said in 2d skateboard game:

                              @Tratax great work man perfect, yes could go either way with this keep as is and keep flowing in one direction or fix the left to do the same as the right.
                              cheers man

                              btw your intros are fantastic to your games i still need to figure out how to load from intro to main game...

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

                                @waldron Thanks, the way I'm doing it still experimental and I'm not sure if its best practice but as everything is carried out sequentially, I try to take advantage of that.

                                Example:

                                // Call my intro/title function before the main game loop
                                // Once this breaks, it then moves into the main game loop
                                
                                doIntro() 
                                
                                
                                // Main game loop
                                loop
                                     .. Main game code goes here 
                                     update()
                                repeat
                                
                                
                                // All my functions live at the bottom of the code
                                function doIntro()
                                loop
                                     clear()
                                     ..
                                     .. Do your fun title code here
                                     .. 
                                     c = controls( 0 )
                                     if c.a then
                                          break
                                     endif
                                     update()
                                repeat
                                return void
                                
                                
                                
                                1 Reply Last reply Reply Quote 1
                                • waldron
                                  waldron F last edited by pianofire

                                  This post is deleted!
                                  waldron 1 Reply Last reply Reply Quote 0
                                  • waldron
                                    waldron F @waldron last edited by pianofire

                                    Update, more tricks, more level drawn and forward motion roll thanks to tratax!
                                    Lots more moves/tricks to come.

                                    1 Reply Last reply Reply Quote 9
                                    • spikey
                                      spikey F last edited by

                                      I am impressed, reminds me of California Games. Also it was a BMX discipline there. It looks like this will be as fun as well.

                                      1 Reply Last reply Reply Quote 2
                                      • Juggalo_Jesus
                                        Juggalo_Jesus last edited by

                                        This is looking AWESOME. Keep up the good work!

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

                                          so im at the point where im updating this whole game with every thing iv learnt so far anything i learn after i will make a 2nd game in the series but for this one im wanting to add 2 other elements im not sure on how to implement..

                                          1.entering end of level - to level 2, entering house/shop screen
                                          kind of know how to do it but is there a better way?

                                          House()
                                          Endlevel1()
                                          Shop()
                                          thinking of creating an item that il mask in the screen so... black door way with black item
                                          collect = said item then house.

                                          2.slopes collision edge detection so player can move diagonally on a 2d game

                                          Spacemario 1 Reply Last reply Reply Quote 0
                                          • B
                                            Bl4ckM4ch1n3 last edited by

                                            You don't necessarily need to create an item to collect to go to the house. You cold simply add a door sprite and check if the player collided with the door. Then you know you'll need to load / display your house.

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