?
Solved

I need some help. (VB RPG Programming)

Posted on 1998-10-09
2
Medium Priority
?
136 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 300 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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

770 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