dMZX Forums: How do I set up Built-ins to sprites - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I set up Built-ins to sprites specifically unbound sprites...

#1 User is offline   smilymzx 

  • Those Goodie-Goodies!
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 25-October 03
  • Gender:Male
  • Location:I.M.MEEN's book

Posted 13 April 2022 - 09:41 PM

Credit goes to the game HELLQUEST 2 for adding this topic here....
I want to have built-ins detected using sprites, including Robot/Pushable Robot/Sensor (Character) detection, is there some way all built-ins can get detected without a problem?
SmilyMZX, A.K.A. Hamtaro126 (A.K.A. AtariHacker)

I am at:

Z2 - ZZT forums, NESDEV Forums, SMW Central (Super Mario World)

Other interests:

Museum of ZZT, NESDEV Wiki, Wiki of Weavers (ZZT-related!)

#2 User is offline   Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,914
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 13 April 2022 - 10:00 PM

You should be able to just put the sprite reference on the board and have it display everything correctly. If black objects are showing up transparent you can set spr#_tcol to -1. It's been a while since I tried it though...

What HELLQUEST 2 does is a little more roundabout because there's a parallax background effect and some other nonsense built into it. It clears a section of the vlayer and then copies a block from the board to the vlayer. What it does after is a little more complicated but in the 1x display modes it just uses two sprites that reference the copied board and overlay. I checked and the two methods (sprite board reference, board to vlayer copy) use the same function to convert board objects to a character, so referencing the board should just work.

edit: note that using the vlayer method is nontrivial because it needs a board robot to execute after everything else on the board. This is so you don't get partial frame "lag" and other graphical bugs caused by using weird intermediate frame copies.

This post has been edited by Lachesis: 13 April 2022 - 10:04 PM

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users