The Daily Click ::. Forums ::. Klik Coding Help ::. counter problems
 

Post Reply  Post Oekaki 
 

Posted By Message

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
2nd December, 2003 at 21:05:27 -

I want my character to level up every time 500 points are added to experience. Does anyone know how to do this? This is what I have now:
If CounterExp = 500 Then Add 1 to CounterLvl.
Would this work?
If CounterExp = CounterExp + 500 / 500 Then Add 1 to CounterLvl?
Help!

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd December, 2003 at 22:47:28 -

If counterExp = 500:
Counterlvl = Counterlvl + 1
CounterExp = 0

Or

Always set Counterlvl to Counterexp\500 then smack off the decimals but I forgot how to do that.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

cake



Registered
  13/12/2002
Points
  1173
3rd December, 2003 at 05:01:22 -

If you have MMF:

Floor(CounterExp/500) > CounterLvl:
Add 1 to CounterLvl

Image Edited by the Author.

 
n/a

Aali [Crazy_Productions]



Registered
  13/10/2002
Points
  843
3rd December, 2003 at 07:14:03 -

If you have TGF:

CounterExp/500 > CounterLvl:
Add 1 to CounterLvl

 
"If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution."
-- Linus Torvalds, December 5th 2003.

(Darl McBride is CEO of The SCO Group)


this place sucks but don't tell anyone, it's our little secret, ok?

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
3rd December, 2003 at 12:03:36 -

Hey Andy: That just might work. I want the CounterLvl to increase by one every time the CounterExp = 500 points. 100 points are added when an enemy is killed. I've actually done that before in an example but I forget where. Thanks.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko
   

Post Reply



 



Advertisement

Worth A Click