BEES! How to Create (Virtually) Unlimited Monsters

SubCog
Posts: 12
Joined: Wed Dec 26, 2018 4:32 pm

Re: BEES! How to Create (Virtually) Unlimited Monsters

Post by SubCog » Tue Feb 19, 2019 10:48 pm

Image
User avatar
Convoy_Avenger
Posts: 99
Joined: Tue Aug 14, 2018 1:42 am

Re: BEES! How to Create (Virtually) Unlimited Monsters

Post by Convoy_Avenger » Sat Mar 09, 2019 12:22 am

dale_coop wrote:
Sun Feb 03, 2019 4:07 pm
Like this:

Code: Select all

	CountObjects #%00001000, #$00 ;; count monsters.
	LDA monsterCounter
	CLC
	CMP #MON_SPAWN_MAX  
	BCS labDoNotSpawn
I'm using a monster to spawn game objects. Would the CountObjects be the same for that? The items keep spawning, not respecting the max I've set. This also goes into the Spawns Enemies AI script, or somewhere else?

EDIT: I always bug you, then find the answer :P I was trying to find MonsterCounter, but that didn't help, then found CountObjects, and it has a nice chart of which bits to flip when you want to count objects. Flipped the right one, and now it seems to be working. Success!
User avatar
jsherman
Posts: 292
Joined: Sun Apr 22, 2018 11:25 am
Location: Cleveland OH

Re: BEES! How to Create (Virtually) Unlimited Monsters

Post by jsherman » Sat Mar 09, 2019 2:05 pm

It will be fun to see who took advantage of this code in the competition. :)
"Turtle Rescue" updates can be found here: viewtopic.php?f=13&t=112
For more in-depth updates, please follow GossipTurtle on Twitter! https://twitter.com/TurtleRescueNES
User avatar
Lother
Posts: 95
Joined: Tue Mar 06, 2018 5:30 pm
Location: France

Re: BEES! How to Create (Virtually) Unlimited Monsters

Post by Lother » Thu Mar 14, 2019 11:48 pm

Now I have a question. Let's say that in a monster group on one screen of my game, the first monster is the spawner and the second one is the monster I want to spawn regularly (the other two do not matter), what would the code be?

This way I can easily use that action to spawn different types of enemies without having to create a new spawner script for each one of these.
_____
The game I'm currently working on : FIGHT OF THE PHOENIX
Post Reply