Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

I need some help. (VB RPG Programming)

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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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

636 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