Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 923 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: 21 models avialbel during creation scrreen #5878
07/24/01 02:23
07/24/01 02:23

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Excuse me, in my previous post, I meant to say change "function" to "action" on the line that says "function male_fire_mutant"

---------------------------------


Re: 21 models avialbel during creation scrreen #5879
07/24/01 03:13
07/24/01 03:13

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



The main difference in ACTION and FUNCTION is the ability to attach the ACTION to an entity within WED. If it is being created in runtime then FUNCTION will work and not clutter up the ACTION property window in WED.

Re: 21 models avialbel during creation scrreen #5880
07/24/01 22:18
07/24/01 22:18

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



okay now that fixed the synonum error but still the model is not being removed.. weeeee getting closer.

Re: 21 models avialbel during creation scrreen #5881
07/25/01 01:30
07/25/01 01:30

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



If you are successfully setting the synonym like Keebo suggested:

function male_fire_mutant
{syn_male_fire_mutant = ME;
}

... where this function is the action you assigned when you created the model (with your create statement), then this should do it:

syn_male_fire_mutant.invisible = ON;

I just tried this last night in my game and turning visible off didn't seem to do it.


-----------------------------------------


Re: 21 models avialbel during creation scrreen #5882
07/25/01 02:52
07/25/01 02:52

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Yes, Michael is correct. MY.INVISIBLE = OFF and MY.INVISIBLE = ON is the proper usage.

I too tried visible = 0 and got a weird effect in which the camera detaches from the player and has gravity applied to it. Could be useful for something I suppose.

Kevin, does the visible = 0 work correctly for you?


Re: 21 models avialbel during creation scrreen #5883
07/25/01 10:10
07/25/01 10:10

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



ok, now 0 is working for me and 1. But I have adjusted the code, let me go back to his code and try it and see what happens.

Re: 21 models avialbel during creation scrreen #5884
07/25/01 23:53
07/25/01 23:53

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



this is very strange. whenever i do add the syn_male_fire_mutant.invisible= ; then i get the empty synonym error.

function TURNOFF_MALE_FIRE
{male_fire_mutant()// set the synonym
wait 1;
syn_male_fire_mutant.invisible=on;;
}
if I take this out the syn_male_fire_mutant then the error goes away. from all of the code i have looked at this should work???

however this one does not generate an error but it does nothing.
function TURNOFF_MALE_FIRE
{male_fire_mutant();// set the synonym
wait 1;
remove syn_male_fire_mutant;
}

okay this version also gives the synonym error.
function TURNOFF_MALE_FIRE
{male_fire_mutant();// set the synonym
wait 1;
me.invisible=off;
}

I am using a4 commericial.


Re: 21 models avialbel during creation scrreen #5885
07/26/01 00:19
07/26/01 00:19

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



The only time you'll be able to set the synonym (with this approach) is when the action or function attached to the entity runs. In other words, whatever function you specify when you use CREATE to create the entity should have the me = syn_male_mutant_fire; command in it. Then you won't need to set that synonym again; you can just use it.

Re: 21 models avialbel during creation scrreen #5886
07/26/01 02:24
07/26/01 02:24

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Try adding:

WHILE (syn_male_fire_mutant == NULL) {WAIT (1);}

before the invisible = ON instead of the WAIT(1).

Credit Ronny for that little nugget.


Re: 21 models avialbel during creation scrreen #5887
07/26/01 03:59
07/26/01 03:59

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



yes that works, however because the syn_male_fire_mutant is never being set i.e. synonym empty error. empty=null=not set right= error. i cant believe this is not working yet. its a very simple concept.okay now i dont get the error message. because of the while statment. Suprisingly enough the model still doesnt go invis. geeze this is getting kinda of funnie.

my code looks like and smells like working code but it isnt hehe.


umm maybe micheal is right, hehe

so maybe i should just put all the models in my level with the invisible flag set. then when i need them set the synonym and visible flag . Would this be easier than using the create function. Michael no matter how you look at it the code the to turn on and off the models will be the same amount. either you use create up front or put the models in the world up front. but the flow of the code will be about the same, that is if I have done my flowcharting correctly.
ummmmm that sounds mighty familiar.

I know someone must have something out there that works like this.


Page 2 of 3 1 2 3

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