Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help for my game interface
#1
Hello I did my game interface, and I need help to load images in PicPk and PicClass, in folder GFX : thank you for your help! Tongue
Reply
#2
So when you load your picture box you need to use this code, or some variation of it. Depending on if you have more than two classes the select case is probably the best bet.

Code:
Select Case Player(MyIndex).Class
    Case 0
        picClass.Picture = LoadPicture(App.Path & "/gfx/interface/Class0.bmp")
    Case 1
        picClass.Picture = LoadPicture(App.Path & "/gfx/interface/Class1.bmp")
    Case 2
        picClass.Picture = LoadPicture(App.Path & "/gfx/interface/Class2.bmp")
End Select
Reply
#3
I would suggest looking into using the drawing functions and blitting these instead of loading them like that.
Reply
#4
This code don't load a picture for class2 Wink
Reply
#5
Matt Wrote:I would suggest looking into using the drawing functions and blitting these instead of loading them like that.
Reply
#6
I don't understand
Reply
#7
Pix€l Wrote:I don't understand

The way the engine works, is it loads a file and stores it in a surface. Then it reads from that surface and blits the graphics to the picbox and what not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)