Author Topic: Placing sprites on overworld maps  (Read 1769 times)

Fauntleroy

  • Architect of Kajar
  • Guardian (+100)
  • *
  • Posts: 184
  • Inclinata resurgit
    • View Profile
Placing sprites on overworld maps
« on: January 11, 2018, 09:25:34 pm »
What I want to do is place the Blackbird sprite (stationary) on the Last Village map.

In examining the Zeal map, I can see objects called up when the map loads, and then placed farther down in the code. But how do you know which sprite is which?

Are objects associated with a particular map or can they be placed on any of the maps?

Thanks.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Placing sprites on overworld maps
« Reply #1 on: January 12, 2018, 12:26:13 am »
Overworld sprites are kinda tricky. The allowed sprites are based on the sprite packets used. The good news is that Zeal, Dark Ages, and Last Village all use the same sprite packets, so you can use the Blackbird.

The Blackbird would be loaded at somewhere around the coordinates of 240, 1F0 - the actual values will probably be lower or higher.

The object loaded at those coordinates will have a sprite loaded as well. You can use that one.

Fauntleroy

  • Architect of Kajar
  • Guardian (+100)
  • *
  • Posts: 184
  • Inclinata resurgit
    • View Profile
Re: Placing sprites on overworld maps
« Reply #2 on: January 12, 2018, 09:23:46 pm »
Nice, thanks!

So, is there anything you DON'T know?
8)

Edited to add: Had some time tonight so I tried it out. Worked like a charm!

« Last Edit: January 12, 2018, 10:13:49 pm by Fauntleroy »

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Placing sprites on overworld maps
« Reply #3 on: January 12, 2018, 11:59:13 pm »
I haven't quite figured out airborne only overworld exits yet. I'll need to look into that sooner or later.

SetDestinationCoords in overworld events is misdecoded. It sets an address in the game's code to execute later, nothing to do with overworld coordinates.

Fauntleroy

  • Architect of Kajar
  • Guardian (+100)
  • *
  • Posts: 184
  • Inclinata resurgit
    • View Profile
Re: Placing sprites on overworld maps
« Reply #4 on: January 13, 2018, 12:11:12 am »
Good to know you are fallible.  But I suspect you'll figure it out before too long.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Placing sprites on overworld maps
« Reply #5 on: January 13, 2018, 03:44:45 am »
It's been on the back burner for a few years, because my reason for looking into it has been stalled. I'll have a new attempt soonish, after Hi-Tech has a stable release.