Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,709 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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