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