• 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

[Scripting Question] Getting an Event to snap to the players position seamlessly?

  • 59
    Posts
    7
    Years
    • Seen May 12, 2022
    So I've kind of decided to keep this thing going for better or worse. And I was just kind of curious about getting a certain thing to look right. Basically, I thought it would be a cool idea to have underwater "routes" that you could explore or just use to get around obstacles that you couldn't clear until you get an hm or the pokeflute.

    So the way these routes work is that you use your pokemon to make a bubble that you use to walk underneath the water. To try and make it look nice - I made a bubble event that's supposed to jump to the players position, which it does - but there's a slight delay that makes the effect look pretty bad.
    [PokeCommunity.com] Getting an Event to snap to the players position seamlessly?
    Is there anyway to have this thing move more smoothly? It uses a parallel process to record the players x,y coordinates and then transfers itself to him.
     
    Last edited by a moderator:
    One way around this would be to make the bubble around the player part of the sprite sheet listed as an outfit, and to change the outfit back to the default when you leave the under water maps.

    I feel like that could work - but I'd have to give the bubble a really weird shape to fit into the sprite sheet. Although if that doesn't work, I did edit a sheet for a floating animation that would be cool on top of the bubble effect.

    Also tried doing a little test on trying out how outfits and I can't seem to get them to trigger.
    I went into the metadata and changed "xxx" in the metadata to boy_bounce and then
    I tried adding "pbChangePlayer(7)" on to the events that transfer the player which didn't work.

    Then I tried creating an event that triggers automatically which also didn't work.

    I guess if I can't get this working at all I could try messing with the "dive" stuff, though I would have liked to keep this separate from dive.
     
    I was worried more that the sprite wouldn't fit through a lot of the tight passages - but it looks like rpg maker just treats every event like the same size - so now it works perfectly, and I was able to simplify some other similar events.

    All that's left to do is edit stuff so it looks decent. Other than that it seems to be working fine - thanks for the help!
     
    Back
    Top