Solved

I need some help. (VB RPG Programming)

Posted on 1998-10-09
2
129 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
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 100 total points
Comment Utility

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

Expert Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now