| Mirage Source http://web.miragesource.net/forums/ |
|
| Help for my game interface http://web.miragesource.net/forums/viewtopic.php?f=201&t=5437 |
Page 1 of 1 |
| Author: | Pix€l [ Thu Apr 09, 2009 2:53 pm ] | ||
| Post subject: | Help for my game interface | ||
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!
|
|||
| Author: | Asrrin29 [ Thu Apr 09, 2009 6:09 pm ] |
| Post subject: | Re: Help for my game interface |
This is a help request topic, moved to the appropriate forum. |
|
| Author: | Anthony [ Thu Apr 09, 2009 6:13 pm ] |
| Post subject: | Re: Help for my game interface |
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 |
|
| Author: | Matt [ Thu Apr 09, 2009 6:54 pm ] |
| Post subject: | Re: Help for my game interface |
I would suggest looking into using the drawing functions and blitting these instead of loading them like that. |
|
| Author: | Pix€l [ Sun Apr 19, 2009 9:53 pm ] |
| Post subject: | Re: Help for my game interface |
This code don't load a picture for class2 |
|
| Author: | Nean [ Mon Apr 20, 2009 2:28 am ] |
| Post subject: | Re: Help for my game interface |
Matt wrote: I would suggest looking into using the drawing functions and blitting these instead of loading them like that.
|
|
| Author: | Pix€l [ Mon Apr 20, 2009 8:51 am ] |
| Post subject: | Re: Help for my game interface |
I don't understand |
|
| Author: | Matt [ Mon Apr 20, 2009 6:49 pm ] |
| Post subject: | Re: Help for my game interface |
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. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|