Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Make Link Invisible via Scripting?

5 replies · 1,542 views · Started 27 May 2008

Is there anyway to make Link invisible via scripting? I couldn't find any method/property to set the "Invisible Link" Screen Flag, and when I tried to move him off the screen by setting, for example, Link->X = -32, it just moved him to the edge of the screen (at X = 0), not off it.

The only other thing I can think of (if there isn't an easy way I'm missing) would be to give him a special item that sets the tile modifier to a transparent tile....but I don't how that would work as far as making him visible again.

😕

The only way is to make a custom item with a Link Tile Modifier that sets Link's sprites to transparent. Give Link the item via script to make him invisible, and take it away with the script to turn him visible again.

I'll forge ahead with that approach then.

Can I just "give" Link the item via script, or do I have to spawn the item so that Link actually picks it up?

Thanks for the help!

Give it to him.

int item_id_number = 0; // Make this equal the item id.

Link->Item[item_id_number] = true;

Cool.

I only asked because I remembered reading something about how giving Link items in that manner didn't always ...do... the item-y stuff that was associated with getting an item.

😮dd:

OK, so I don't know what the heck I'm talking about. Maybe it was giving Link a Triforce piece or something.

I think it was a bug trying to make Link invincible by giving him a clock that you're remembering.