Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
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
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 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
entity definition #184843
02/20/08 23:55
02/20/08 23:55
Joined: Jun 2004
Posts: 62
O
Oberon3d Offline OP
Junior Member
Oberon3d  Offline OP
Junior Member
O

Joined: Jun 2004
Posts: 62
Hi

I have been defining entities for ages using the method :

entity* numberone;

action whatever
{
numberone = me;
}

It doesn't seem to work anymore... In the manual says something about defining the now using something like:

ENTITY* numberone = { whatever whatever...}

is this the only working way now to define entities?...why has it changed?

thanks

Re: entity definition [Re: Oberon3d] #184844
02/23/08 22:46
02/23/08 22:46
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Hi Oberon3D,

it still works with A7.
You only need to apply the action "rotator" to your entity (mdl, no sprite) and you should see your entity is rotating. In this case the main loop controls the animation.

-- slacer

Code:
// lab.wdl

entity* KUGEL;

action rotator {
my.shadow = on;
KUGEL = me;
}
function main() {
level_load( "lab.wmb" );
wait(3);

while(1) {
while (!KUGEL) {
wait(1);
}
if ( KUGEL ) {
kugel.pan += 3 * time_step;
}
wait(1);
}

}



Re: entity definition [Re: slacer] #184845
02/25/08 17:41
02/25/08 17:41
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

I use in ver 7.07:

ENTITY* numberone;

...
action whatever ()
{
numberone = me;
}

Hope this helps

Re: entity definition [Re: Ottawa] #184846
02/26/08 16:07
02/26/08 16:07
Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
G_Tos Offline
Member
G_Tos  Offline
Member

Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
And how can I controll view-entities with other functions (position, etc.)? There doesn't work "numberone=my" ...Please help me!

Wie kann ich view-entities von anderen actions/functions aus steuern (position, winkel, etc.)?

Thx schonmal!


Spiele zu spielen ist Übung, sie zu machen Kunst!(Zitat)


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