Page 2 of 3

Posted:
Thu May 31, 2007 10:32 pm
by Markswii99
Thank You very much sparkey I understand those directions.
I do have one more question though. How do I mave a variable?
I feel I am asking way too many questions sorry about that.

Posted:
Thu May 31, 2007 10:37 pm
by d-soldier
To make a variable, all you need to do is click up on the SCRIPT tab, then GLOBAL CODE. In this area, click on the VARIABLES button (NOT THE VARIABLES/FUNCTION BUTTON), then on the ADD button. In this box you enter the name (remember that variable/scripts are CASE SENSATIVE) and you can adjust if it is a GLOBAL (default) or ACTOR variable... Click on the OK button when done, and thats all there is to it!

Posted:
Thu May 31, 2007 10:42 pm
by Markswii99

Posted:
Fri Jun 01, 2007 12:45 am
by Sgt. Sparky
You are welcome.


Posted:
Fri Jun 01, 2007 1:45 am
by Markswii99
Sgt. Sparky wrote:when you shoot your enemy:
collide.health -= 5;
one last thing where do I put this part of the code?

Posted:
Fri Jun 01, 2007 2:02 am
by Caaz Games
In The Collision Event Of The Bullet To The Other Actor

Posted:
Thu Jul 26, 2007 2:42 am
by arcreamer
shockingly... errors in script when i try and do the script... "illegal structure operation..." and "undeclared healthbar"...

Posted:
Thu Jul 26, 2007 3:17 am
by Caaz Games
Mine or sparkys?

Posted:
Thu Jul 26, 2007 3:55 am
by d-soldier
arcreamer, post your code (copy and paste it from your script in GE) here... typically those kinds of errors occur when you misplaced something in the script, or try to use a variable that doesn't exist.

Posted:
Fri Jul 27, 2007 6:10 pm
by lilmuleman214
steps 2, 3, and 4 confuse me. Coould someone explain them to me please?

Posted:
Fri Jul 27, 2007 6:12 pm
by Sgt. Sparky
arcreamer wrote:shockingly... errors in script when i try and do the script... "illegal structure operation..." and "undeclared healthbar"...
you must make an actor called healthbar.

Posted:
Fri Jul 27, 2007 6:17 pm
by Caaz Games
ok
2.)change the animation of the healthar Actor to "STOPPED" in "Create actor".
3.)then make two actors ( for now lets just call them "A" and "B").
4.)go to "Draw Actor" of the Health Bar actor and put in the code:
- Code: Select all
DestroyActor("A");
Have it "Wait For Frame Action" then put in the last frame number (mine would be 11)

Posted:
Fri Jul 27, 2007 6:20 pm
by Sgt. Sparky
Caaz Games wrote:[code/]
DestroyActor("A");
[/code]
*
- Code: Select all
[code][/code]
those brackets are for making a code box.


Posted:
Fri Jul 27, 2007 6:54 pm
by lilmuleman214
for step five, do u put the code in the health bar, or a/b actors?

Posted:
Fri Jul 27, 2007 6:59 pm
by Caaz Games
The A actor