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 1 of 2 1 2
help with the compass in aum 45 #256679
03/18/09 09:51
03/18/09 09:51
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
Maybe some one could help with this
the compass in aum 45 I put the wdl in my program and it show up ok on the screen
but the needle does not move. Was I to add something else to my program as it did not say to?
thanks

Re: help with the compass in aum 45 [Re: Shelley] #256747
03/18/09 19:24
03/18/09 19:24
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Put this line at the beginning of your player action:

player = my;

Re: help with the compass in aum 45 [Re: George] #256790
03/19/09 02:58
03/19/09 02:58
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
It did not work
I put in a watch for needle roll it said 0.00
one for my.pan and one for my and player it said not avalable
for the three I put the player=my in the main while loop
also I am useing a6 plus I made the test level useing the
shooter then add it after. When I press the f11
key I do see the pan working from 0 to 360
I also did a step trace it does not seem to go past the
while(!) player==null and if I rem it out it says its an empty pointerin set compass needle.roll = -player.pan;
if this helps

Re: help with the compass in aum 45 [Re: Shelley] #256810
03/19/09 07:25
03/19/09 07:25
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
First of all, your line should be while (!player) {wait (1);} or while(player == null) {wait (1);}
Then, you should put the line I've told you about inside your player action.

Re: help with the compass in aum 45 [Re: George] #256902
03/19/09 13:41
03/19/09 13:41
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
here is where it is at i tryed it there and even tried it below in the while loop below the while player==


starter set_compass()
{

while (player == null) {wait (1);}
player=my;

while (1)
{needle.roll = -player.pan;
wait (1);
}
}

Re: help with the compass in aum 45 [Re: Shelley] #257031
03/20/09 07:15
03/20/09 07:15
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
You should put the "player = my;" line of code inside your player action, not inside "starter set_compass()".

Re: help with the compass in aum 45 [Re: George] #257136
03/20/09 18:05
03/20/09 18:05
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
I am Sorry but I am not understand you on this.
If I don't get it this time I won't bother you again with it
is this what you you are saying

action player_comp()
{
player = my;
}

I put the action player_Comp in the test level before the main

I put the player_comp() in several different place not
all at once from the one post you said it should go below the
while (player == null) {wait (1);}
the only place that it is the starter set_compass so
I put player_comp(); there nothing happened then
I put it in the test level main while loop again nothing
and the watch still says its not avilable and the step trace
if i place it on the while(1) or needle.roll when it hits
that while (player line it just stays there as it still is
null I know it is something stupid I am doing wrong but I can't
figure what
Thanks for you time and I am sorry to be a pain

Re: help with the compass in aum 45 [Re: George] #257137
03/20/09 18:08
03/20/09 18:08
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
I am Sorry but I am not understand you on this.
If I don't get it this time I won't bother you again with it
is this what you you are saying

action player_comp()
{
player = my;
}

I put the action player_Comp in the test level before the main

I put the player_comp() in several different place not
all at once from the one post you said it should go below the
while (player == null) {wait (1);}
the only place that it is the starter set_compass so
I put player_comp(); there nothing happened then
I put it in the test level main while loop again nothing
I know it is something stupid I am doing wrong but I can't
figure what
Thanks for you time and I am sorry to be a pain

Re: help with the compass in aum 45 [Re: Shelley] #257171
03/21/09 03:37
03/21/09 03:37
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Hello Shelley,

Don't worry, you aren't bothering me at all. Your project should contain a player action - it's the action attached to your player model in Wed. Go to that model and get the name attached to it - let's say it's "my_player". Now search the script(s) until you find this action; let's say that it looks like this:

action my_player()
{
....
}

now put the line of code I've told you about inside the action:

action my_player()
{
player = my;
....
}

That's all.

Re: help with the compass in aum 45 [Re: George] #257272
03/22/09 04:16
03/22/09 04:16
Joined: Oct 2007
Posts: 38
Mississippi, USA
S
Shelley Offline OP
Newbie
Shelley  Offline OP
Newbie
S

Joined: Oct 2007
Posts: 38
Mississippi, USA
That was it smile it was in the PlBiped01.wdl
action PlBiped01()
I knew it was something stupid I was doing
Thank you so much for yuor help

Page 1 of 2 1 2

Moderated by  George 

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