Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 767 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trouble understanding workshops #260823
04/13/09 22:23
04/13/09 22:23
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
I just don't understand how so few code can give the player the power to move an object. It starts with the 8th Workshop. Until then, I understood everything, but from then on, I was lost. Can anybody explain to me the code used to move the car(s)?
Yours truly,
Marc

Re: Trouble understanding workshops [Re: Marc_Gagne] #260901
04/14/09 15:01
04/14/09 15:01
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
Can anybody help me?


"Chaos. War. Death. This is what I see."
Raistlin Majere
Re: Trouble understanding workshops [Re: Marc_Gagne] #260910
04/14/09 15:58
04/14/09 15:58
Joined: Mar 2009
Posts: 35
M
Mr_Bullet Offline
Newbie
Mr_Bullet  Offline
Newbie
M

Joined: Mar 2009
Posts: 35
when you read the lite-c tutorial you will find the code!

Peace


I´m a Bullet and I am found in your brain...
Re: Trouble understanding workshops [Re: Mr_Bullet] #260915
04/14/09 16:21
04/14/09 16:21
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
Well that's my problem. When I read the code, I don't see how the player is assigned to the car (isn't there supposed to be a pointer or something?).


"Chaos. War. Death. This is what I see."
Raistlin Majere
Re: Trouble understanding workshops [Re: Marc_Gagne] #260919
04/14/09 16:41
04/14/09 16:41
Joined: Mar 2009
Posts: 35
M
Mr_Bullet Offline
Newbie
Mr_Bullet  Offline
Newbie
M

Joined: Mar 2009
Posts: 35
I understand...

///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

function main()
{
level_load ("work18.wmb");
}

action move_me()
{
while (!key_s) wait (1); // wait until the player presses the [S] key
while (1)
{
my.x += 15 * time_step; // move the entity along the x axis
my.z += 3 * time_step;
wait (1);
}

I would also like to know how the player is assigned to the car laugh

Peace


I´m a Bullet and I am found in your brain...
Re: Trouble understanding workshops [Re: Mr_Bullet] #260921
04/14/09 16:42
04/14/09 16:42
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
My first thought was that there was another, hidden script attached, but I think that that's impossible. Does anybody else know how this script works?


"Chaos. War. Death. This is what I see."
Raistlin Majere
Re: Trouble understanding workshops [Re: Marc_Gagne] #260926
04/14/09 17:12
04/14/09 17:12
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
Anybody know the answer?


"Chaos. War. Death. This is what I see."
Raistlin Majere
Re: Trouble understanding workshops [Re: Marc_Gagne] #260930
04/14/09 17:33
04/14/09 17:33
Joined: Aug 2003
Posts: 63
UK
ptrc1c Offline
Junior Member
ptrc1c  Offline
Junior Member

Joined: Aug 2003
Posts: 63
UK
I think you mean the 18th workshop. The code contained within the action has been applied to the model in WED, the level editor. Anything that has an action applied to it will be the me or my in the action. If you right click on a model in WED you get the properties menu and here you will find a list of all the actions contained within the script associated with the level.

Re: Trouble understanding workshops [Re: ptrc1c] #260931
04/14/09 17:54
04/14/09 17:54
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
Ohhhh... Now I get it... Thank you!


"Chaos. War. Death. This is what I see."
Raistlin Majere

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