Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, clint000, Grant, chsmac85, Martin_HH), 5,858 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need help setting up external cam and player movemet #286240
08/24/09 07:41
08/24/09 07:41
Joined: Aug 2009
Posts: 1
Tokyo, Japan
M
mp555 Offline OP
Guest
mp555  Offline OP
Guest
M

Joined: Aug 2009
Posts: 1
Tokyo, Japan
Hi All,

I had used pervious version of 3D game studio about 10 years ago (I believ version 3 or 4), so I am new to Lite-C scripting and am a little lost.

I had perviously made an isometric system where the camera moved with the player character as it moved around the game level. None of my code or old tricks work anymore and I am becoming a little frustrated with the whole thing. I am living in Tokyo teaching Engllish and I need to have my old hobby back to keep me company.

I basically need two things:
1. Get an isometric cam system setup. I have gotten this to work by several different methods in A7, but I can't get it to control the player entity. Only the cam moves even when I have a player entity with the proper behavior applied to it.

Which leads me to #2

2. Control the player while having an external cam (in my old version I could control both, but I wrote all the code to do it).

I know it must be something simple I have not found in the ttorials or manuals...but I am about to give up tongue

Any help is greatly appreciated!

Re: need help setting up external cam and player movemet [Re: mp555] #286241
08/24/09 08:04
08/24/09 08:04
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Can't believe that the tutorial that come with Lite-C don't help you.
They are very basic and step by step and good.

You want to control the player from the camera code?
Why not the other way round?
A very simple 'isometric' code:

#include <acknex.h> // include these predefined, needed files in our project
#include <default.c>

#define PRAGMA_ZERO//this simplifies a lot for people who are familiar with C-Script

action go()
{
player = me;
while(1)
{
my.x += key_cuu - key_cud;
my.y += key_cur - key_cul;
camera.x = player.x;
camera.y = player.y - 150;//adjust the values to your needs
camera.z = player.z + 150;
camera.tilt = -45;// I guess this is the right value, there are other ways to assure that the camera always looks at the player
wait(1);
}
}


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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