Navigation

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

    I need help on a game

    Coding
    4
    17
    797
    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.
    • Tratax
      Tratax F @LinkCraft last edited by Tratax

      @LinkCraft02 Awesome... I think a first great step will be learning how to make the plane move with the player input

      The most simple way to do this would be to create a variable to store the 3 positions of X,Y,Z, you can do this several ways, some examples:

      Single variable appraoch
      PlaneX = 0
      PlaneY = 0
      PlaneZ = 0

      Vector variable approach
      PlanePos = {0,0,0}

      Once you have your variables, you can then update the 3D object with a simple approach in the main game loop like:

      j = controls ( 0 )
      PlanePos.x += j.rx
      PlanePos.z -= j.ry

      To break down the above, you have the variable, on each game cycle, adjusting by the input value returned from j.rx / ry ( right control stick X plane, right control stick Y plane)

      So, now we have a variable, we have input capture which is adjusting the variable, what next?

      You can next use a function to update the object's location and plot it with your variable, the outcome... your moving the control stick will move the planes position

      The Fuze team has made some amazing demos and help guides I highly recommend going through, reading through other posts here is also valuable - I can also suggest breaking up your game into small demos and projects to assist with your learning as building a full flight sim will take some work..

      Keen to see what you have so far if you'd like to share your friend code - I'll be off work in about a week so happy to assist with your project (as well as a few others ill be working on!) - I have a first person 3D engine I'm working on that I'll eventually share as a template for people to build on

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

        @LinkCraft02 Hey LinkCraft, Here's some framework to get you started! Let me know if you'd like the code shared and ill do so

        1 Reply Last reply Reply Quote 5
        • Tratax
          Tratax F last edited by

          @LinkCraft02 Try modify the above code to "set the Camera" to follow the planes position!

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

            @Tratax - Amazing dude.

            @LinkCraft02 apologies to have left you hanging! I'll be keeping my eye on this thread - it's an awesome idea. Looking forward to seeing where you take it!

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

              Hey thanks for everyone’s help my friend code is SW-1861-6681-0419
              I also have school so it might take me a while to edit my program and share it.

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

                Ok so I had a slight problem and long story short my start to the flight sim game is now gone so I need to restart. Oops

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

                  @Tratax Ok I shared the program so you can see how far I am. It needs a ton of work

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

                    @LinkCraft02 Cool, I'll take a look tonight

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

                      @Tratax Ok and if you want to you can work on it too and share it back.

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

                        @LinkCraft02 Sure, no problems - have sent you a friend request

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

                          this is great i can have a blast at 3d games now, would be nice to be able to make our own 3d models tho

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

                            I know that I’ve barley worked on this program but I think I’m going to take a brake and work on programs that are more my level

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

                              But I’m definitely coming back to this one later

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

                                I'd start with 2d or a single screened game,
                                It's very worth it using the sample games loading them up and just customizing them
                                So you learn where to put code and what does what it helped me immensely!
                                Still worth holding onto your project as it's great to add to it as you learn.

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