set something at a specific events position

Discussion in 'Javascript/Plugin Support' started by DarknessFalls, Oct 27, 2015.

  1. DarknessFalls

    DarknessFalls Rpg Maker Jesus - JS Dev. Veteran

    Messages:
    1,393
    Likes Received:
    209
    First Language:
    English
    When you get an event, or a sprite_character you can get the x and y which is usually something like 3,4 which is relevant to your editor mapping tool. 

    So how do you set a window or a another object at that specific location with out tying it directly to the event. For example balloon animations are placed at the sprite location and above there head. How ever thats tied directly to event. I just want to throw something at the events specific location.

    Ideas?
     
    #1
  2. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    924
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    If you can get the location of where the event was when you started to throw the item, you could just store that position as the item's destination and have it move toward it every update. You'd have to store the destination in the item, though.
     
    #2

Share This Page