| Mirage Source http://miragesource.net/forums/ |
|
| Combo box: select other tileset. http://miragesource.net/forums/viewtopic.php?f=210&t=2655 |
Page 1 of 2 |
| Author: | JohnY [ Sat Sep 08, 2007 8:50 am ] |
| Post subject: | Combo box: select other tileset. |
Could anyone make a tut on how to add a Combo box to the MapEditor in wich i'm able to choose like Tiles1.bmp, Tiles2.bmp etc. untill Tiles14.bmp, I've tried without success. |
|
| Author: | Robin [ Sat Sep 08, 2007 9:33 am ] |
| Post subject: | Re: Combo box: select other tileset. |
Use the onclick event to initialise the code which switches the sheets. |
|
| Author: | JohnY [ Sat Sep 08, 2007 10:40 am ] |
| Post subject: | Re: Combo box: select other tileset. |
I haven't got any clue how this combo box works, I don't know how to make it select multiple options. |
|
| Author: | Robin [ Sat Sep 08, 2007 10:43 am ] |
| Post subject: | Re: Combo box: select other tileset. |
Add the different options in the properties then change the code accordingly. |
|
| Author: | JohnY [ Sat Sep 08, 2007 11:01 am ] |
| Post subject: | Re: Combo box: select other tileset. |
EDIT: Figured it out I believe... or maybe not. |
|
| Author: | JohnY [ Sat Sep 08, 2007 11:19 am ] |
| Post subject: | Re: Combo box: select other tileset. |
EDIT: My code: frmMirage.ListBox.ListIndex = 0 frmMirage.picMapEditor.Visible = True With frmMirage.picBackSelect .Width = 7 * PIC_X .Height = 255 * PIC_Y .Picture = LoadPicture(App.Path + GFX_PATH + frmMirage.ListBox + GFX_EXT) As soon as I select a different tilesheet it just scrolls back to the default. Any help? |
|
| Author: | Coke [ Sat Sep 08, 2007 12:51 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
You have to delve.. into the land.. OF DIRECT X MAUEHAUSHEUAHSEUHAUEHAUEHAUSHEUHSA -cries irl- Elysium has it, you could just rip it from there ;o |
|
| Author: | Matt [ Sat Sep 08, 2007 1:10 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Using more than one tileset is a lot harder than just adding a combo box to switch between them. You have to make sure you can map with the new tileset, have to make sure the map knows which tileset to pull the tiles from when it blits, etc, etc. Just rip it from Elysium. It might be the only thing they actually did right. No offense Sean. xD |
|
| Author: | William [ Sat Sep 08, 2007 4:53 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
I dont see why you need more than 1 tileset =/ |
|
| Author: | Matt [ Sat Sep 08, 2007 5:38 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
I use a massive tileset. Which means it has to load that entire massive tileset when it loads. If you use more than one tileset at smaller sizes, you could make it not load all at once and load only the tilleset you need. |
|
| Author: | Lea [ Sat Sep 08, 2007 6:24 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Perfekt wrote: I use a massive tileset. Which means it has to load that entire massive tileset when it loads. If you use more than one tileset at smaller sizes, you could make it not load all at once and load only the tilleset you need. You could.... but this is Mirage we're talking about The best way to do it would to be only loading the individual tiles you need. Cashe them for a while, and then unload.... |
|
| Author: | Robin [ Sat Sep 08, 2007 6:32 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Cashe? o_o It's actually pretty ideal to have tilesets load and unload if you need them or not for Winds Whisper, because they're only very small and you only need one per map because they're RM2K. |
|
| Author: | Lea [ Sat Sep 08, 2007 6:40 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Robin wrote: Cashe? o_o It's actually pretty ideal to have tilesets load and unload if you need them or not for Winds Whisper, because they're only very small and you only need one per map because they're RM2K. Let me explain... When a tile is needed, load it from the disk. Use it while it's in use, and when it's not in use, mark it as so. Have a timer, say every 5 minutes, go around and unload the tiles from memory that are not in use. That way, if I load a tile, then go to a map that doesn't use it, I hold on to it. When/if I come back right away, the tile is ready to go. |
|
| Author: | funkynut [ Sat Sep 08, 2007 7:54 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
You'd need to add a new tile property with tileset number and new direct x surfaces to load the new tileset Then when blting the map, when checking the coords for the tile you need to draw, just check the tileset number as well |
|
| Author: | Xlithan [ Thu Sep 27, 2007 7:31 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* |
|
| Author: | Matt [ Thu Sep 27, 2007 7:34 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
GameBoy wrote: Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* How do you even know Sean ripped it at all? |
|
| Author: | Coke [ Thu Sep 27, 2007 7:58 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
GameBoy wrote: Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* The Konfuze milestone forums, christmas 2006, when Storm suggested it. The idea, that is. |
|
| Author: | Matt [ Thu Sep 27, 2007 8:00 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
Fox wrote: GameBoy wrote: Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* The Konfuze milestone forums, christmas 2006, when Storm suggested it. The idea, that is. 2006..? Konfuze was still around then..? O_o |
|
| Author: | Coke [ Thu Sep 27, 2007 8:14 pm ] |
| Post subject: | Re: Combo box: select other tileset. |
2005*. |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|