Mirage Engine
Help for my game interface - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Help for my game interface (/showthread.php?tid=2716)



Help for my game interface - Pix€l - 09-04-2009

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


Re: Help for my game interface - Anthony - 09-04-2009

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



Re: Help for my game interface - Matt - 09-04-2009

I would suggest looking into using the drawing functions and blitting these instead of loading them like that.


Re: Help for my game interface - Pix€l - 19-04-2009

This code don't load a picture for class2 Wink


Re: Help for my game interface - Nean - 20-04-2009

Matt Wrote:I would suggest looking into using the drawing functions and blitting these instead of loading them like that.



Re: Help for my game interface - Pix€l - 20-04-2009

I don't understand


Re: Help for my game interface - Matt - 20-04-2009

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.