How do I set a number to this?[Solved]

Started by Icey, Mon 31/01/2011 22:58:22

Previous topic - Next topic

Icey

Your probably just mess with me :)

But I really dont have an intentions of making another OSD seeing how most of PMQ idea get soaked in it. I am however am going to Finish small stuff that was missing in OSD2 and release later on if not winter this year then spring next year.

Also CATB is the name of the battle system not a subtitle for a game.

monkey0506

Quote from: Matti on Tue 01/02/2011 02:25:29
Quote from: monkey_05_06 on Tue 01/02/2011 02:06:10
Cross Assault Time Battle..FTW!!

Will there be an OSD:CATB ? I'm all for it.

OCD:CATB? NO WAI!!

After all this recent hype about it I'm seriously considering releasing CATB:IWWHI:IWWHI:TOMI:C5:ROTPG:TG:TCATBC:C1:FTWHDI (Cross-Assault Time Battle: I Wonder What Happens In: I Wonder What Happens In: Tales of Monkey Island: Chapter 5: Rise of the Pirate God: The Game!: The Cross-Assault Time Battle Challenge!!1: Chapter 1: For The..Wait, How Do I..?).

Icey

What a long title.

Any how. I dont quite know if this is the link but can some explain why the hp numbers dont go down?

They do go do down but you cant see the change in them. They stay at 100/50

Khris

I assume you're displaying them on labels using

Code: ags
strengths.Text = String.Format("HP: %d", playerHP);


right?

What this does is format the string using the value playerHP had at the time the command was called.
The right side is evaluated, i.e. if playerHP is 89, it ends up being "HP: 89", a static string. The label text is then set to that.
What you didn't do is add some automatic behavior to your game that'll keep updating the label's text.

Long story short, either move the line to repeatedly_execute or call it again every time playerHP changes.

Ryan Timothy B

This is the best thread I've ever read.

Akatosh

In fact, this thread is so good, it makes me want to dig a hole and hide in it until everything goes away.

monkey0506

Wait, I thought Akatosh was dead..weren't you gone for a while? Hiding in a hole from the last thread? ^_^

Also, this post is relevant and on-topic. Just in case anyone was wondering.

Icey

Ok-um Khris, Thanks it worked.

SMF spam blocked by CleanTalk