• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Putting the Flash circle around an event

  • 12
    Posts
    9
    Years
    • Seen Mar 8, 2016
    The idea is to trigger the Flash effect (the big squared-circle light thing) when the player interacts with an event, but the event would be the center of the Flash, not the player. Like a campfire on a dark forest, that would be a nice example.

    Is that possible? And if so, would I be able to put, like, 2 or 3 of that on the same map?
     
    Just break the method refresh from class DarknessSprite into another one where you inform the cx, cy and radius as paramethers. So, check and call this method for each game variable you reserve/set for making the extra "holes" on screen mask. '$game_map.events[1].screen_x' return the X position on screen of map ID 1, use to get the events coordinates on screen. Also, put a check if the screen coordinate is negative, since the mask won't work. You also need to call the mask refresh every time that the screen move a single pixel, or this will mess with the event.
     
    Back
    Top