QuesTMajoR 4 Report post Posted April 21, 2012 INTRO: This Tutorial allows you to make a Flashlight or Spotlight that Follows the Player Even on small maps and on the Corner of the screen. LIKE THIS: FIRST YOU MUST HAVE THIS GRAPHIC: Import it on Graphic/Pictures Folder. Step 1: First you must make a command to initialize this things so: Go to Database/Common Events then make 3 Common Events that is all Triggered to Parallel Process. Step 2: On the First Common Event and name it: ''Actor Screen Direction", Assign any Condition Switch there that you will need to activate the Spotlight. Then make a "Control Variables Command" Set it to Character/Player/Screen X. And Another Variable. Set it again to Character/Player/Screen Y. Leave that Common Event and make another Common Event. NOW YOU MUST HAVE LIKE THESE: Step3: On the Second Common Event, Name it "Spotlight Initialize" Then Trigger to Parallel Process and Condition Switch to the Switch that you assigned on Step2. -->Now Make a command there "Control Switches" then assing to any Switches but do not assign that on the switch that you have on Step2, Make it "ON". Then After that Make another Command "Show Picture", this is the picture that you've Imported Earlier in the Graphic/Pictures Folder. -->Show that Picture using "Show Picture" Command then Set it's ++Origin to: Center++ : ++Display Position to the Variable of the Player that youve made Earlier on Step2. The X must be set to the Variable of the Player's Screen X ; and the Y must be set to the Variable of the Player's Screen Y. THEN set it's ZOOM to BOTH 98. APPLY and OK then Move to Step 4. NOW YOU MUST HAVE LIKE THESE: Step4: Now Make Another Common Event named: Follow Player, Set it's trigger to Parallel then Condition Switch to the Switch that you assigned on the "Control Switch" Command on Step3. (IF YOU DONT REMEMBER, LOOK AT THE BLUE TEXT SENTENCE ON STEP 3). ---->After That Make 4 Conditional Branches that is all Conditioned to "The >Left, Down, Up, Right< Button is being pressed" LIKE THIS ONE: Then Each Conditional Branch must have "Move Picture" Command. Make a "Move Picture" then Set it to -->Time: 1 Frame ; The Origin : Center ; Display Position : The Variable of Player's X and Y Position on the Screen, like you did on Step 3 (IF YOU FORGOT, LOOK AT THE PURPLE TEXT SENTENCE ON STEP3) Then Set it's ZOOM to BOTH 98. Press Apply and OK. -----> AFTER THAT YOU WILL COPY THAT MOVE PICTUTE THEN PASTE IT ON EACH CONDITIONAL BRANCHES<----- LIKE THIS ONE: THEN AT LAST! YOU MUST MAKE A SWITCH ANYWHERE TO ACTIVATE THE FLASHLIGHT! -----> Anywhere on Map, make an Event then make a Command: "CONTROL SWITCH" then Select the Switch that you assigned on Step 2, make it ON, Apply/OK then Test your Game. TRIGGER THAT EVENT THAT YOU DID AT THE TOP THEN THAT MUST LOOK LIKE THIS: Share this post Link to post Share on other sites
BitAngel91 0 Report post Posted June 28, 2012 This is really really nice. This really helped me out. Amazing work. Share this post Link to post Share on other sites
KJM 98 0 Report post Posted July 8, 2012 Thank you, Thank you my dear Phillipino amigo! This is so kind of you to help me make a survival horror game. This is a key script to make one, of course. By the way, I think I should add you as a friend. Share this post Link to post Share on other sites
QuesTMajoR 4 Report post Posted July 19, 2012 Thank you, Thank you my dear Phillipino amigo! This is so kind of you to help me make a survival horror game. This is a key script to make one, of course. By the way, I think I should add you as a friend. :D Don't Mention it! Just Sharing... :D Share this post Link to post Share on other sites
Rajaat99 3 Report post Posted October 13, 2012 Yes, I'm necro-posting. Sorry. However, I'm having difficulties with this. I set everything up, but the spot light is not initializing in the correct spot. It's appearing in the lower left hand side of the screen. Any assistance? Share this post Link to post Share on other sites
Polraudio 122 Report post Posted October 14, 2012 Dont want to brag but this is 100x easier and requires way way less switches/variables and you get the same exact effect if not better. http://www.gdunlimited.net/forums/topic/8562-very-very-simple-flashlight-tutorial/ Share this post Link to post Share on other sites