Hi guys
i'm currently making a fighting game the problem is that when i use this script
Whan flag clickeed
Forever if (<{P1 Hp }> = 10
Switch to costume .ect
the problem is that when the health is not a 10,20,30,40 ect the bars want show the health as intended so how should i redo the scrip to make it work thanx
Offline
use [switch to costume round(health/10)+1]. This will turn out of the health numbers from 1 to 11, like if health's 15 it will switch to costume 3, if 78 to costume 9 and so. You (might also) want to add check script to <health=0>
Offline
sorry but can you give an example of a scrip like that
sorry dont quite get what you mean
Offline
thanx so much its my first game that is kind of advanced i will uplode it when its finished
Offline