Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
apache ah64 game #228296
09/18/08 16:36
09/18/08 16:36
Joined: Apr 2008
Posts: 61
F
firelord Offline OP
Junior Member
firelord  Offline OP
Junior Member
F

Joined: Apr 2008
Posts: 61
im new to gstudio and have an idea for a project which is a top down hellicopter game, im starting of simple just a flat terrain which i have made a apache hellicopter which i have made and im looking for a code for the top down camera can any one help, this camera needs to be fixed i have looked at the scripts with gstudio am i missing something with those scripts,once i have the camera view i can work on basic movement for the hellicopter.
thanks

Re: apache ah64 game [Re: firelord] #228357
09/18/08 21:45
09/18/08 21:45
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Vonman Offline
Junior Member
Vonman  Offline
Junior Member

Joined: Nov 2005
Posts: 66
Spokane, WA, USA
I guess you would set CAMERA.Z to a specific amount above your player's aircraft, create a loop instruction that keeps the camera.x and camera.y cords equal to the aircrafts.x and .y cords, and by fixing the camera.tilt to -90.

Example:

function Chopper_cam()
{
while(1)
{
camera.x = aircraft.x;
camera.y = aircraft.y
camera.z = aircraft.z + 8000;
camera.tilt = -90;
wait(1);
}
}


The things you would need for this to work is
1. A POINTER to the aircraft (eg: ENTITY* CHOPPER;)
in the beggining of the script.
2. An aircraft model
3. An aircraft model ACTION


Last edited by Vonman; 09/18/08 21:47. Reason: More Details
Re: apache ah64 game [Re: Vonman] #228471
09/19/08 18:49
09/19/08 18:49
Joined: Apr 2008
Posts: 61
F
firelord Offline OP
Junior Member
firelord  Offline OP
Junior Member
F

Joined: Apr 2008
Posts: 61
yes im a complete noob and still am a it lost im starting small and i have the hellicopter model in .mdl format and the terrain made, where do i put your script

Re: apache ah64 game [Re: firelord] #228519
09/20/08 03:13
09/20/08 03:13
Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Vonman Offline
Junior Member
Vonman  Offline
Junior Member

Joined: Nov 2005
Posts: 66
Spokane, WA, USA
Well, if you were to copy and past what I wrote above into a .wdl file, you would most likely get an error because it is'nt completely defined, it was just a short example.

What do you have so far in terms of script? Are you using the templates or from scratch?

Re: apache ah64 game [Re: Vonman] #228617
09/20/08 23:25
09/20/08 23:25
Joined: Apr 2008
Posts: 61
F
firelord Offline OP
Junior Member
firelord  Offline OP
Junior Member
F

Joined: Apr 2008
Posts: 61
im using the templates at moment and im using version 7.10 extra.

Last edited by firelord; 09/22/08 18:09.
Re: apache ah64 game [Re: firelord] #228800
09/22/08 18:09
09/22/08 18:09
Joined: Apr 2008
Posts: 61
F
firelord Offline OP
Junior Member
firelord  Offline OP
Junior Member
F

Joined: Apr 2008
Posts: 61
is there a template that would work well for my needs.
thanks


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1