Solved

I need some help. (VB RPG Programming)

Posted on 1998-10-09
2
134 Views
Last Modified: 2010-04-30
I have started with a game called The Glory.
It's a RPG game and I need some help :)

1.I have a picturebox with green background and a label inside the
picturebox where I can se how much health I have left.But when I press a
button the health will go down a random number. (- 3 to -30) to if I have
100 in health and press the button and it says -23 then the label should be
77. I have done this but this is the problem. I want the picturebox
backcolor to be more red for every hit and when I'm at under 2 in health it
would be vbRed. I have tried this. picture1.backcolor =
rgb(0,picture1.backcolor - label1.caption,0) but it doesn't work.

2.I want to make my game like this. You see yourself from 4 directions.
Up,Down,Left and Right.
But my qusetion is: When I click somewhere in the screen my charachter will
go there. If I click above him he will turn so I can se his back and if I
click left of him he will turn so I can se him from the left sidem, and so
on. Is there some way I can do this with BitBlt?

3.And when I click on my player or a NPC I will get up a menu.But I want
the background a it darker with it. Like when you choose shutdown Windows.
The background appears cloudy. I want to do like that. If you click on me
you will get a menu like this:

Look at
Read
Check

and the stuff backside the meny should apperar cloudy.

/Mattias, 15 from Sweden

If you want to add me on ICQ my UIN is: 13947936
0
Comment
Question by:Matte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 100 total points
ID: 1439124

picture1.backcolor =
rgb(0,255 -(100 - val(label1)),0)  
0
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1439125
My mistake..
Picture1.BackColor = RGB(255 * (100 - Val(label1)) / 100, 0, 0)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question