Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: how do you create a third person view ? [Re: paracharlie] #414657
01/06/13 10:58
01/06/13 10:58
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
@paracharlie

I don't see the problem here i pointed you to my place
were in the basic workshop are many camera views including the one you need. Others also pointed you in the right direction
so with a little effort you should have your solution laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: how do you create a third person view ? [Re: Realspawn] #414661
01/06/13 12:56
01/06/13 12:56
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
Well 3DGS is more for programmers, new people need to read AUM code.
For new comers, beginners, 3DG should re implement the default Third camera system (like in A6 days) !
I mean the default script selection when creating a new game.

Re: how do you create a third person view ? [Re: paracharlie] #414667
01/06/13 13:37
01/06/13 13:37
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
this is piece of my code (move and rotate )
but There are many problems for example
Player get into the walls and floor
Mouse go round 360 degrees
And when we shoot bullets fired from different places will

Code:
/////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
/////////////////////////////////////////////////////
var c_move_w;
var c_move_s; 
///////////////////////////////main function ////////
function main ()
{
	level_load ("level1.wmb");
	video_mode = 7;
}
///////////////////////////////action myplayer ////////
action myplayer ()
{
	while(1)
	{
		/////////////////////////////////////move
		if (key_w == 1)
		{
			c_move(my,vector(40*time_step,0,0),NULL,GLIDE);
			ent_animate(my,"walk",c_move_w,ANM_CYCLE);
			c_move_w +=10*time_step;
		}
		if (key_s == 1)
		{
			c_move(my,vector(-40*time_step,0,0),NULL,GLIDE);
			ent_animate(my,"walk",c_move_s,ANM_CYCLE);
			c_move_s +=10*time_step;
		}
		//////////////////////////////////// pan
		my.pan -= mouse_force.x;
		my.tilt +=mouse_force.y;
		////////////////////////////////////camera following
		vec_set(camera.x,vector(-150,30,25)); //////////////third person camera
      vec_rotate(camera.x,my.pan);
      vec_add(camera.x,my.x);
      vec_set(camera.pan,vector(my.pan,-10,0)); 
      vec_set(camera.tilt,vector(my.tilt,0,0)); 
		/////////////////////////////////////////
		wait(1);
	}
}


Last edited by Realspawn; 01/06/13 17:49.
Re: how do you create a third person view ? [Re: amirmehrvarz] #414674
01/06/13 14:35
01/06/13 14:35
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
One thing I forgot to tell sorry paracharlie grin

Re: how do you create a third person view ? [Re: amirmehrvarz] #414693
01/06/13 17:15
01/06/13 17:15
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
first thing USE CODE TAGS.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: how do you create a third person view ? [Re: rayp] #414698
01/06/13 20:01
01/06/13 20:01
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
ok
help me

Re: how do you create a third person view ? [Re: amirmehrvarz] #414699
01/06/13 20:07
01/06/13 20:07
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
You should check the last ones AUM magazine talking about the RPG template.
You have just to take the code of the third person character controller.

Re: how do you create a third person view ? [Re: ratchet] #414706
01/06/13 21:10
01/06/13 21:10
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Your code overwrites random portions of memory.
Code:
vec_set(camera.tilt,vector(my.tilt,0,0));

Do the tutorial. I think you have no clue about the code above and that you have copied it from the AUM. Am I right about this?


Always learn from history, to be sure you make the same mistakes again...
Re: how do you create a third person view ? [Re: Uhrwerk] #414715
01/07/13 04:30
01/07/13 04:30
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
no no no only camera code is copy from the workshop 24

Page 2 of 2 1 2

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

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