View Full Version : Potions
Zackman
June 8th, 2005, 12:10 AM
Hey, How can i make a potion in my game?
Like i need it to heal the character when he uses it
nathan99
June 8th, 2005, 12:24 AM
if u have msn add me and i will help you i_eat_lots_of_food@hotmail.com
Krilnon
June 8th, 2005, 12:27 AM
Considering you've told us nothing about the game you're creating...
potionStrength = 40;
maxHP = 100;
function usePotion() {
hp = hp+potionStrength;
if (hp>maxHP) {
hp = maxHP;
}
}
hpButton_mc.onPress = function() {
usePotion();
}
Zackman
June 8th, 2005, 12:28 AM
Yes i do, I will add you
nathan99
June 8th, 2005, 12:43 AM
k im on
Zackman
June 8th, 2005, 02:36 PM
Ok, Sorry i wasnt on last night, I had to go
And i cant go on now because i am on my lunch break
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.