d-soldier wrote:... First let me say, cool game man. Did you make all the graphics youtself? Pretty cool little game here...
Okay, so here's what I did to get it working... exactly what I said above. I dont know if you didn't save it after trying the scripts I gave you, but nothing was setup as I said it needed to be. The life variable was still global, there was no create actor script for theboss, and the draw actor script still had all that junk in it.
1) Click on on the SCRIPTS tab in GE, click GLOBAL CODE, the VARIABLES, EDIT / LIFE, switch from global to actor.
2) Click on THEBOSS (be sure it doesn't accidently click the fireball below him as i did a few times) and bring up the actor controls. Click "add event" / "create actor" / "Script Editor". In that blank script use:
life=100;
then click OKAY / IMMEDIATE ACTION
3)Click on EDIT EVENT / DRAW ACTOR / SCRIPT EDITOR
and remove eveything from the script, and paste in:
if ( life <= 0 )
DestroyActor("Event Actor");
then click OKAY / IMMEDIATE ACTION
---
Thats it, I'm watching the wizard running all around the screen shooting fireballs at me right now. And dont worry about not being good with the scripting, I was asking the same questions just a month ago, and getting frustrated when people would answer without being speciffic enough to really help me due to my limited understanding. Let me know how this works out.
if (var1 < var2)
Users browsing this forum: No registered users and 1 guest