villasight.blogg.se

Make a game with coppercube
Make a game with coppercube












make a game with coppercube

But the action we just added rotates the character so that it looks like it falls to the ground. It could be useful to add further actions there, like playing a sound or similar, if you like. This action will be executed when the Actor dies. Our action which gets run when the Actor dies.

make a game with coppercube

Place the soldier somewhere you like it to be. In the prefab window, simple double click the "Animated soldier" and CopperCube should create an instance of this character in your 3D world. There is a 'Soldier' prefab available which comes with CopperCube. But for a game, we need a bit more.Īs enemies, we will use some animated characters. So now we have a camera which can move in the 3D world. If you want to change the gravity, adjust the value of 'Gravity' which you can find when selecting the root node of the scene in the SceneGraph Explorer. You can adjust the size of the ellipsoid and the position of the camera in the ellipsoid. The second behavior in the camera is the 'Collide when moved' behavior, which influences how the camera collides with its environment. If you want the camera to be able to fly instead of walk, you can check the 'CanFly' option, but for this tutorial, we don't use this feature. You can set various options there, like the movement or rotation speed. Now go to the properties window of the camera, open the 'Behaviors' tab and select the 'First Person Shooter style controlled' behavior:

#MAKE A GAME WITH COPPERCUBE WINDOWS#

You can try if your camera is ok by testing your app, for example clicking Tools -> Test as Windows Application, and move around in your 3d scene a bit. You can use the scale tool (shortcut 'R') to change the size of the ellipsoid.Īlso, be sure that the yellow ellipsoid 'flies' a bit in the air and that it doesn't touch any wall or floor in the beginning, otherwise the user would be stuck in that wall at the start of the application and would not be able to move. You need to make it big enough that it is possible for the user to climb stairs, but small enough to fit through doors. Maybe you need to adjust the size of this ellipsoid, so that it matches your scene. This is the collision body, basically the size of the person walking around in the scene. Notice the yellow outline of an ellipsoid around the camera. The newly created first person shooter camera














Make a game with coppercube