Binders Keepers Losers Weepers
- Dr. Dos
- OH YES! USE VINE WHIP! <3
- Posts: 1772
- Joined: Tue Mar 11, 2003 12:00 am
- Location: Washington
Binders Keepers Losers Weepers
So at like 4AM I couldn't sleep and decided to bore myself to sleep by thinking of a solution to the whole Can't have a bunch of objects #bind an object that take multiple shots since every object winds up #zapping :shot at once.
So here's a solution.
This board has max objects and is only 8K.
It's not perfect but it works.
http://zzt.org/dr_dos/temp/BindersK.zzt
Edit: Removed some objects so you can have bullets on the screen.
So here's a solution.
This board has max objects and is only 8K.
It's not perfect but it works.
http://zzt.org/dr_dos/temp/BindersK.zzt
Edit: Removed some objects so you can have bullets on the screen.
Last edited by Dr. Dos on Tue Jul 10, 2007 7:45 pm, edited 1 time in total.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
-
- Posts: 371
- Joined: Fri Sep 01, 2006 1:30 am
- Quantum P.
- Level 17 Accordion Thief
- Posts: 1433
- Joined: Fri Sep 12, 2003 1:41 am
- Location: Edmonds, WA
- Contact:
Very clever indeed! #bind is one of the more powerful commands, yet most people don't use it as part of a larger program.
You know what would be cool? If, when an enemy took damage, there'd be a chance he'd mutate into a different kind of enemy. This would lend itself well to games like Aura, where there's (1) several different distinct types of enemy, and (2) different strategies for dealing with each enemy type.
You know what would be cool? If, when an enemy took damage, there'd be a chance he'd mutate into a different kind of enemy. This would lend itself well to games like Aura, where there's (1) several different distinct types of enemy, and (2) different strategies for dealing with each enemy type.
- Shadow Mage
- Naked Zombie Sean Connery
- Posts: 163
- Joined: Sun Jul 30, 2006 6:18 pm
- Dr. Dos
- OH YES! USE VINE WHIP! <3
- Posts: 1772
- Joined: Tue Mar 11, 2003 12:00 am
- Location: Washington
I was thinking of actually doing this, but then I realized that would involve making a serious ZZT game and fuck that.Quantum P. wrote:Very clever indeed! #bind is one of the more powerful commands, yet most people don't use it as part of a larger program.
You know what would be cool? If, when an enemy took damage, there'd be a chance he'd mutate into a different kind of enemy. This would lend itself well to games like Aura, where there's (1) several different distinct types of enemy, and (2) different strategies for dealing with each enemy type.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
This is pretty sweet. The reason you can't do it with just one set of code is because if an object #binds, it merely sets itself to point to the original object's code instead of duplicating it. Meaning if you zap a label, that applies to all the objects sharing that code. (internally, this is done by setting "code length" for the object to a negative number which tells us which object it is #binding)
I think I may use this. Thanks :)
I think I may use this. Thanks :)
- Ellypses
- Whaf yew vauhnt?
- Posts: 145
- Joined: Tue Aug 24, 2004 2:14 pm
- Location: In hell called earth
- Contact:
Be fore warned this doesn't alway works, mainly if your code is too long. Those codes are short and it doesn't trigger a glitch that's within zzt itself. If the first bind is inactive(not moving) and the second bind is active, then it will work. My theory is that the first bind doesn't have much code to process. This is useful to look into further, if anyone's going to make any szzt games again.
- Dr. Dos
- OH YES! USE VINE WHIP! <3
- Posts: 1772
- Joined: Tue Mar 11, 2003 12:00 am
- Location: Washington
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.