Mirage Source http://miragesource.net/forums/ |
|
[3.78] Help with Making it where shift selects multiple tile http://miragesource.net/forums/viewtopic.php?f=184&t=6154 |
Page 1 of 64 |
Author: | KruSuPhy [ Wed Aug 19, 2009 9:03 pm ] |
Post subject: | [3.78] Help with Making it where shift selects multiple tile |
Yeah. I can't really figure it out for some reason. I know I have to code in where they press the shift button while the map editor is open of course and then click, but I can't really figure out what code I would use to make it work right o.o.. I'm using 3.78. |
Author: | seraphelic [ Thu Aug 20, 2009 5:10 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple tile |
I havent played with mirage in about a year, but I made this from scratch so lemme see.... If you don't know how to do any part of this, I would open a source that has it for reference (elysium), DONT rip the whole thing *shudders* steps: detect the shift key (could be in gameloop, in the mapeditor draw section OR inside the function that detects mouse clicks in the map editor) set a variable to current tile coords set the red box to be drawn from first coords to current coords in the section where the program blits the mask, have an if to check for the red box dimensions if dimension = spriteX by spriteY >> blit regularly ELSE blit dimensions of red box **if your tileset has a scrollbar, than make sure when you set the blit area to include the additional area (scrollbar_value * spriteY + redbox.top) this isnt the best system, you should probably set up a couple global variables instead of recalling the red box's dimensions. good luck. |
Author: | Matt [ Thu Aug 20, 2009 1:42 pm ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple tile |
There's a tutorial for this. I just used it last night cause I'm lazy. |
Author: | KruSuPhy [ Thu Aug 20, 2009 5:45 pm ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple tile |
I went to elysium*shudder* and it didn't exactly help. I got so many errors on load that i just exited out and gave up for the night. xD EDIT: And I can't find the tutorial >_< |
Author: | Matt [ Thu Aug 20, 2009 6:01 pm ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple tile |
http://web.miragesource.com/old-tutoria ... elect.html You'll have to tweak it a bit to work with MS4, but not by much. |
Author: | KruSuPhy [ Thu Aug 20, 2009 10:58 pm ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple tile |
Alright. I'm working on that. xD Trying my best, not working :l |
Author: | wanai [ Tue Jan 18, 2022 2:27 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Econ |
Author: | wanai [ Tue Jan 18, 2022 2:28 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
148.7 |
Author: | wanai [ Tue Jan 18, 2022 2:29 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Bett |
Author: | wanai [ Tue Jan 18, 2022 2:30 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Bett |
Author: | wanai [ Tue Jan 18, 2022 2:31 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Teic |
Author: | wanai [ Tue Jan 18, 2022 2:32 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Autr |
Author: | wanai [ Tue Jan 18, 2022 2:33 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Como |
Author: | wanai [ Tue Jan 18, 2022 2:34 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Appl |
Author: | wanai [ Tue Jan 18, 2022 2:36 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Juli |
Author: | wanai [ Tue Jan 18, 2022 2:37 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Inst |
Author: | wanai [ Tue Jan 18, 2022 2:38 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Fisk |
Author: | wanai [ Tue Jan 18, 2022 2:39 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Bonu |
Author: | wanai [ Tue Jan 18, 2022 2:40 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Enya |
Author: | wanai [ Tue Jan 18, 2022 2:41 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
More |
Author: | wanai [ Tue Jan 18, 2022 2:42 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Indi |
Author: | wanai [ Tue Jan 18, 2022 2:43 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Glob |
Author: | wanai [ Tue Jan 18, 2022 2:45 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Robe |
Author: | wanai [ Tue Jan 18, 2022 2:46 am ] |
Post subject: | Re: [3.78] Help with Making it where shift selects multiple |
Opal |
Page 1 of 64 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |