Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I am making a open world flight simulator game that's actually turning out to be really good. I needed some help as to how I can make randomly generated structures in coppercube , I also needed some help as to how I can make AI pedestrians. |
||||
|
For pedestrians you could try sven's waypoint ai - http://www.youtube.com/channel/U... Scroll down the videos to the third row and you'll find it. |
||||
|
Hi Girik, for make randomly generated structures, you could try the behavior "clone a scede node" => change position of a scene node => Set to random area and you chose the parameters. One question, how are you doing a Flight Simulator in Coppercube? I'm asking this because I want to do a Flight Simulator, but I have no ideia how to do this without physycs for airplanes. Do you have a demo to show us? |
||||
|
Well I haven't made the up and down movement of the plane yet . My basic idea is to control the up and down movement with the mouse and the other stuff with the keyboard. The plane won't move up or down until the mouse surpasses a specific y position on the screen. So maybe if I want it to move down , I would apply an if statement where if the mouse position is less that a certain position then it would move down and if it is greater than a certain y position then it would move up. But if it is in the middle , it won't move up or down. By the way thanks for that randomly generated structure idea. I will be posting a very very early demo after some time. |
||||
|
It won't be very advanced or anything. The purpose of the game is to explore the large map. The map is 80% water(at the moment) but there are several things in the water to make it interesting. The water has dynamic moving ships. Motorboats also can be found. I am using prefab models right now , will be making my own models later. There is one City in the far north. Several islands scattered around. And that's all I have dine right now. I want to finish the up and down movement then I will make the map have more stuff |
||||
|
Great Girik, the idea of movement up and down is very good, show us the game when you can, good luck in your project! :) |
||||
|
My suggestion is: (and that is jet plane dynamics), allow to roll the plane sideways, and to lift and lower the nose, not to control altitude, but whether the plane flies a parable "up" or "down" with respect of the current rolling angle. So for example if the pilot rolls 90 degrees left and then pulls the nose up, the plane flies east. This allows also loopings etc. and gives you the ultimate jet flight feeling. While it's easy to set the rotation of the plane by code, it's a bit trickier to move the plane in the direction it is currently pointing purely by 3D math. But you can use tricks, for instance have an invisible target mesh parented to the plane, some distance in front of the plane. Now you can just position the plane on a point between the 2 objects, by getting xyz distance, divide by something related to speed, then add this to the current xyz position and place the plane there. So controls would simply contain: (roll left/right) if cursor left: plane rotation.z++ if cursor right: plane rotation.z-- (nose up/down) if cursor up: plane rotation.x -- if cursor down: plane rotation.x ++ (move in direction of nose) planeposition=planeposition + speed * direction or use the mouse of course. |
||||
|
hmm, I just see my advice was maybe a little off topic, the question was not about controls, and a jet may be the wrong type of plane to explore things in detail. To late :) |
||||
|
Hi csp-games, your idea about the control of plane is very good! This idea is only using variables? I would like to do a simple control and movment of a plane, but only using the variables, (I don't know using javascript yet). :) |
||||
|
how can i make a high graphics game |
||||
|
@Guest if you want high graphics game ,You can use quality textures and models, and customize details such as shadow, light, reflection, particle, fog and other. |
|