if(hp>=limit)hp=limit;
if(hp<=0)hp=0;
Xblinxor wrote:uh hi im new to ge and this is pretty interesting ?
Bee-Ant wrote:A limit?ummm..i always use:
view-DrawActor:
- Code: Select all
if(hp>=limit)hp=limit;
if(hp<=0)hp=0;
Is this the limit you mean?
hp = max(0, min(hp, limit));
hp = min(104, 163); // hp = 104
hp = max(0, 104); // hp = 104 still
hp = min(-4, 163); // its still equal to -4
hp = max(0, -4); // now it is equal to 0
Bee-Ant wrote:What's MMO anyway?:P
I have a question, if i use some big arrays, for example a[100],b[100],etc...will lag the game?if yes, whats the max number for the best perfomance?
Users browsing this forum: No registered users and 1 guest