Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


MATH/AS QUESTION LOL

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Slappy101
I post too much
Reputation: 1

Joined: 19 Jun 2007
Posts: 2602

PostPosted: Fri Oct 17, 2008 4:34 am    Post subject: MATH/AS QUESTION LOL Reply with quote

in the current game that I'm working on, I have a health bar with a width of 100 pixels. I need an equation that can be used to turn a number into a percentage so I can set the width of the hp bar, is this possible?
_________________
Back to top
View user's profile Send private message
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Fri Oct 17, 2008 4:39 am    Post subject: Reply with quote

Oh wow.

(currentHealth / maxHealth) * barWidth

What grade are you in, may I ask?

_________________
Back to top
View user's profile Send private message MSN Messenger
Slappy101
I post too much
Reputation: 1

Joined: 19 Jun 2007
Posts: 2602

PostPosted: Fri Oct 17, 2008 4:41 am    Post subject: Reply with quote

Rolling Eyes now, I knew that...which is sorta odd... thanks anyways lol
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites