mp bar help

elisf2

Member
Hey guys hoping someone can help I'm putzing around and trying my hand at making a game I have incorporated a mp bar so when I do a free special it depletes once the bar gets to low player should not be able to perform the move however the player can still perform the move by depleting players health I do not want this to happen. Not sure what I am doing wrong ? Any help would be greatly appreciated
 
my guess would be you have not declared mponly it defaults to 0 so once your mp is finished it will start to cut away at your life


mponly


Determines the type of energy needed (and required) for an animation. Use in conjunction with Energycost.


Use
{int}
(default: 0 )
Engery type used.


0 = If the entity has enough mp to perform the move, {int} is subtracted from it's mp. If not, the difference will be subtracted from the entitiy's health.
1 = Only mp.
2 = Only health.


Examples
In this example below, this freespecial will require and use 10 mp to perform. It will only use mp, and only work if mp supply is sufficiant.


Code:
anim freespecial1
energycost 10
mponly     1
range 50 300
loop  1
delay 10
frame data/chars/bob/idle0001.png
frame data/chars/bob/idle0002.png

 
Back
Top Bottom