Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Whats wrong here? [Re: Blackchuck] #292562
10/04/09 20:13
10/04/09 20:13
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

The wait instruction must be there in order to load the level correctly.
Here it's doing it's job very well.

Now you have to find out why your ballplayer creates the error message.

The program is expecting a physics object and is getting an entity instead.

Follow the code to the next lines.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Whats wrong here? [Re: Ottawa] #292628
10/05/09 13:51
10/05/09 13:51
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
Now the level starts but the ball just falls throw the level;

action ballplayer()
{
player = me;
newton_addentity(player, 5, NEWTON_SPHERE, onforceandtorque);
while (1)
{
player_force.x = 380 * time_step * (key_d - key_a);
player_force.y = 380 * time_step * (key_w - key_s);
player_force.z = 0;
camera.x = player.x - 29;
camera.y = player.y;
camera.z = player.z + 15;
camera.tilt = -5;
wait (1);
}
}

and the Brige is;

action Brige()
{
my.push=100;
set(my,FLAG8);
reset(my,DYNAMIC);
wait(1);
c_setminmax(me);
}

But it still falls throw, whats wrong?


I have know Gamestudio/A7 Commercial Edition 7.84
Re: Whats wrong here? [Re: Blackchuck] #292782
10/06/09 23:42
10/06/09 23:42
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Could you explain : "but the ball just falls throw the level;"


Also this might help your code :
Add a wait(1) after player = me just to make sure that it there.
Code:
action ballplayer()
{
player = me;
wait (1);
newton_addentity(player, 5, NEWTON_SPHERE, onforceandtorque);




Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Whats wrong here? [Re: Ottawa] #293749
10/13/09 15:30
10/13/09 15:30
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
Nop, but there musst be a way to code it...

Anybody any ideas?


I have know Gamestudio/A7 Commercial Edition 7.84
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

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