Solved

I need some help. (VB RPG Programming)

Posted on 1998-10-09
2
135 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

705 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