News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Reactivating Shutters

Started by graw-_@, June 12, 2015, 05:41:58 PM

Previous topic - Next topic

graw-_@

Is there some way to make shutters that move up or down after being shot then return to their original position after being shot again?  I can make them move up and down continuously or move once. I've been searching for a way to do this but haven't been able to figure it out.

Quote58

Short answer: yes
Less short answer: would require a bit of extra code

Smiley

Quote from: Quote58 on June 12, 2015, 06:01:40 PM
Less short answer: would require a bit of extra code
X-ray room?

It can be done really easily, though only in SMILE JX if I remember correctly.
Enemy properties has a clickable box next to Speed, Speed2 and Orientation. For shutters, it has a "Move once" option which does that. You can look at how it's set up in the x-ray room.

Quote58

oh, I just figured if it happened anywhere in the game already he would've looked at it.

graw-_@

#4
Thanks for pointing out the xray room I've been scouring all the rooms. I thought there were shutters like that somewhere. But I was starting to think I'd imagined them. I'll take a look and see what's in there

EDIT:Thank you for your help. The solution was setting the shutter's special byte to A800, instead of A880, like the shutters in the X-Ray room.

So:
A800=Shutters that reactivate
A880=Shutters that work once
In case anyone wants to know.