Page 1 of 1

Health Potion

PostPosted: Wed Aug 17, 2005 7:02 pm
by Crusader
:D Pray,tell me how to crete a health potion.

PostPosted: Thu Aug 18, 2005 1:26 am
by Game A Gogo
Collision on anyside of (your main caracter)
-Destroy event actor
on destoy event
(If healt is a variable)-Script:
Code: Select all
Healt=healt+30;

(If healt is an animation)-Script:
Code: Select all
Healt.anipos+=5;


hope it work, Healt can be change to the real name

PostPosted: Thu Aug 18, 2005 4:24 am
by Chai
1. you created actor Healt potion
2. set collision between " player" && "Healt potion"
3. script editor write
Code: Select all
HP += 10;

* (HP = variable)* (HP += 10; / HP = HP+10; all same)
3.1 set
Code: Select all
DestroyActor("Healt potion");

4. set the Player HP = 20;

- when your player collision Healt potion HP will be 30 -

Finish

wish u luck ; u can ask if u want :wink: