How does an event draw a large graphic?

● ARCHIVED · READ-ONLY
Started by mlogan 5 posts View original ↗
  1. I am trying to figure out how an event draws a graphic larger than 32 x 32. I have a few places where I have such things and I've tried some different placement options but I can't quite figure it out. I can't tell if it starts in one corner and goes out, starts in the middle and goes out or what.

    I made a little picture to help with my question.

    DrawEvents.png

    The problem I'm having is that I have the graphics and need them to be in very specific places, but they are not behaving like I thought they would, therefore, I'm not sure how to position the graphic. I hope this makes some sort of sense.
  2. My theory is that it basses it from the origin of the bitmap so center point basically. Usually when I script a sprite the ox and oy is the bitmap.width and height / 2
  3. It centers the event horizontally on the tile, but aligns the bottom.


    So if you have a sprite that is 64x64 pixels, it'll take up the tile the event is on, as well as half the tile both to the left and right, and the tile(s) above it/them.


    Of course, only the tile the event is on will be checked for passage settings.


    A good one to look at as an example is the large door tile - not sure if that's 64 wide or 96 though, but it still illustrates the concept.
  4. So like the top-right pink square. Perfect! Thank you so much!
  5. yep :)


    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.