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. :D

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 [ Wed Dec 01, 2021 11:25 am ]
Post subject:  Re: [3.78] Help with Making it where shift selects multiple

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruинфоhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.rutaskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruсайтhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

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/