entitiy question
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
ChaliShank

Hey ladz, I was just wondering something.
Once you spawn an entity inside your code (using EntitySpawn) can you delete it? Because if you can't how could I do magic spells? Please don't tell me to stagger the loading of several dozen pcxs so it looks like animation. PLEASE don't tell me that.

Thanks a million (and one)
ChaliShank



Posted on 2002-03-15 10:24:13

Omni

try changing the entity.on property, like

entity.on[player]=0;

that will turn off an entity. As far as I know you can't actually destroy them, just deactivate them.



It is not wrong to not understand, for we are all ignorant, but neither is understanding pointless.

Posted on 2002-03-15 10:34:40

ChaliShank

What do you suggest I do with spells then? If I create a new spell entity, and it finishes, can I load a new spell into the same entity somehow? (Magic perhaps ;) ) Or if I deactivate it, does it free the memory?

These questions and more...on the next edition of ChaliShank...Mr. Doesn'tKnowAnythingButLikesToPretendHeIsTheGrandmasterOfAllThingsProgramming Owns The Universe.





Posted on 2002-03-15 16:47:12

Omni

maybe...hmm...

alright, instead of turning the entities off, turn the

entity.visible flag off. Then, when you need the spell animation again,

position the entity with the entity.x and entity.y variables,

then run through its animations, then make it invisible again.



It is not wrong to not understand, for we are all ignorant, but neither is understanding pointless.

Posted on 2002-03-15 18:05:59

Mythril

You could use one, and then show part of it at a time. And that would actually be easier than to convert to a chr first, even..



Spoon.

Posted on 2002-03-16 14:55:26


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.