Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Small problem #111664
02/11/07 15:56
02/11/07 15:56
Joined: Feb 2007
Posts: 3
D
Deku_Boy Offline OP
Guest
Deku_Boy  Offline OP
Guest
D

Joined: Feb 2007
Posts: 3
I have no idea why, but for some reason, I keep getting a "number syntax error" for this script:

entity* player;

var player_x;
var player_y;
var player_z;

action carl
{while(1)
{player = my;
player_x = my.x;
player_y = my.y;
player_z = my.z;
my.x += key_force.y * time;
my.y += key_force.x * time;
wait(1);
}
}

view player_camera
{layer = 1;
pos_x = 0;
pos_y = 0;
size_x = 256;
size_y = 192;
arc = 45;
aspect = 1;
offset_x = 0;
offset_y = 0;
ambient = 10;
fog = 10;
flags = visible;

pan = 0;
tilt = -10;
roll = 0;

x = (player_x + 5); //the error comes up right here
y = 0;
z = 0;
}



I don't understand why it's doing this, considering that player_x is a global variable and should be able to be used in initializing other variables, right?

Re: Small problem [Re: Deku_Boy] #111665
02/11/07 16:25
02/11/07 16:25
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
x? is it a defined var?


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: Small problem [Re: Puppeteer] #111666
02/11/07 16:27
02/11/07 16:27
Joined: Feb 2007
Posts: 3
D
Deku_Boy Offline OP
Guest
Deku_Boy  Offline OP
Guest
D

Joined: Feb 2007
Posts: 3
x is the x position of the camera. I would find it weird that it would find a problem with me calling that one x, when I just refer to the other position values as y and z with no problems.

Re: Small problem [Re: Deku_Boy] #111667
02/11/07 16:35
02/11/07 16:35
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
By the way: Are you german?
yes, of course...
ever tried deleting the ()? (brackets <- right ?? )


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: Small problem [Re: Puppeteer] #111668
02/11/07 16:39
02/11/07 16:39
Joined: Feb 2007
Posts: 3
D
Deku_Boy Offline OP
Guest
Deku_Boy  Offline OP
Guest
D

Joined: Feb 2007
Posts: 3
I only put them because it wouldn't work without them, so I thought it might work if I added them... but it didn't.

As for being German, no, I'm not.

Re: Small problem [Re: Puppeteer] #111669
02/11/07 16:39
02/11/07 16:39
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
x is predefined, call it another thing.

Re: Small problem [Re: demiGod] #111670
02/11/07 19:12
02/11/07 19:12
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Good job demiGod
i didn't realized


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com

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