Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by EvanTJ. 11/28/26 18:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EvanTJ, Quad, AndrewAMD), 4,715 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: New guy needs help please :) [Re: Cowabanga] #262655
04/25/09 05:40
04/25/09 05:40
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
This is the code I got for function main

function main()
{
set(welcomescreen,SHOW);
wait(10);
level_load("training.hmp");
ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0);
sky.z = 30;
camera.z = 30;
character = ent_create("char.mdl",vector(0,0,100),NULL);
}

missed that out.

Last edited by JakeBilbe; 04/25/09 05:40.
Re: New guy needs help please :) [Re: JakeBilbe] #262656
04/25/09 05:42
04/25/09 05:42
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Is it working now??

Re: New guy needs help please :) [Re: Cowabanga] #262657
04/25/09 05:46
04/25/09 05:46
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Dw I figured it out I had to put ENTITY* before the character = ent_create thanks for the help smile.

Last edited by JakeBilbe; 04/25/09 05:49.
Re: New guy needs help please :) [Re: JakeBilbe] #262658
04/25/09 05:49
04/25/09 05:49
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Did you put this line:
Code:
#include <acknex.h>


Re: New guy needs help please :) [Re: Cowabanga] #262659
04/25/09 05:54
04/25/09 05:54
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Yeah I sorted it now but I hit another wall lol the code I was using to turn the model around and to jump up wont work now, do you know how I can re use this code below?

action Player()
{
while (1)
{
if (key_a)
my.pan += 19*time_step;
if (key_d)
my.pan -= 19*time_step;
if (key_w)
c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
if (key_space) me.z +=8;
if (me.z > 20) me.z -=0.4;
wait (1);
}
}

Re: New guy needs help please :) [Re: JakeBilbe] #262660
04/25/09 06:01
04/25/09 06:01
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
For Jumping, try "my" instead of "me".
For rotating, try "c_rotate". http://www.conitec.net/beta/ac_rotate.htm

Re: New guy needs help please :) [Re: Cowabanga] #262661
04/25/09 06:03
04/25/09 06:03
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Urm nope the model is just in the middle of the map frozen.

Re: New guy needs help please :) [Re: JakeBilbe] #262662
04/25/09 06:05
04/25/09 06:05
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Maybe whan you created it you've putted a wrong vector that makes him stuck in ground.

Re: New guy needs help please :) [Re: Cowabanga] #262663
04/25/09 06:06
04/25/09 06:06
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Yeah I thought that as well but I set his xyz to 20,40,250 and he is above the ground, just not moving. This is right tho?

action Player()
{
Player = me;

while (1)
{
if (key_a)
c_rotate += 19*time_step;
if (key_d)
c_rotate -= 19*time_step;
if (key_w)
c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
if (key_space) my.z +=8;
if (my.z > 20) my.z -=0.4;
wait (1);
}

Last edited by JakeBilbe; 04/25/09 06:06.
Re: New guy needs help please :) [Re: JakeBilbe] #262664
04/25/09 06:09
04/25/09 06:09
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
It's so wrong. c_rotate is wrong.
This is how to use c_rotate:
Code:
c_rotate(my,vector(19*time_step,0,0),GLIDE);


Anyway, replace the while by this one:
Code:
while (1)
{ 
	if (key_a)
	c_rotate(my,vector(19*time_step,0,0),GLIDE);
	if (key_d)
	c_rotate(my,vector(-19*time_step,0,0),GLIDE); 
	if (key_w) 
	c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
	if (key_space) my.z +=8;
	if (my.z > 20) my.z -=0.4;
	wait (1);
}


Page 2 of 4 1 2 3 4

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