Jump to content

Photo

I need a certain script for flying enemies


  • Please log in to reply
13 replies to this topic

#1 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 21 September 2019 - 11:57 PM

I Need a global script that makes all enemies that fly,

such as Keese bats,  to be able to show over All 6 over-layers anywhere.

 

They are going behind some of my over-layers and it's messing up some of my game.


Edited by SkyLizardGirl, 21 September 2019 - 11:59 PM.


#2 TheLegend_njf

TheLegend_njf

    Deified

  • Members
  • Real Name:Grant

Posted 22 September 2019 - 04:06 AM

I usually put the flag "No Enemies" on such layered combos, but if you're unable to do that, I'm sure somebody here might be able to help. I can't script so I'm flat out useless here outside of that small tip. 


  • SkyLizardGirl likes this

#3 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 22 September 2019 - 02:37 PM

Oh ok, thank you.

 

The Flying enemies are going beneath mountain over layer combos, i really need this fixed.


Edited by SkyLizardGirl, 22 September 2019 - 02:38 PM.


#4 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 22 September 2019 - 05:45 PM

High layers such as 5/6 are intended to be over flying enemies. Use a lower layer if you want them to be over it. And please, don't PM me about a script request while I'm in Japan (now through February), or in fact ever because I ALREADY GET NOTIFICATIONS WHEN YOU POST A NEW THREAD.

#5 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 22 September 2019 - 05:48 PM

Ok..

Japan?


Edited by SkyLizardGirl, 22 September 2019 - 05:49 PM.


#6 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 22 September 2019 - 05:52 PM

Ok..
Japan?

Indeed. Study Abroad.
  • ShadowTiger likes this

#7 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 22 September 2019 - 06:02 PM

Ok sorry.

 

I have the overlayers on the lowest, and the enemies are still flying under them.

 

They are not supposed to do that.

 

They are flying under mountains and sky tiles.


Edited by SkyLizardGirl, 22 September 2019 - 06:03 PM.


#8 TheLegend_njf

TheLegend_njf

    Deified

  • Members
  • Real Name:Grant

Posted 22 September 2019 - 09:41 PM

Make sure they aren't the exact same Map/Screen. I've accidentally done that when drawing stuff on layer 1 or 2 only to wonder why they were appearing over my head only to realize layer 1 and 3 was set to the exact same screen. Oops! So if you're trying to draw on layer 3 that's pointing to M3S36 and Layer 6 is pointing to that exact same screen, that might explain why things on layer 3 and 4 are appearing over enemies because they're also on either layer 5 or 6. 


  • SkyLizardGirl likes this

#9 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 22 September 2019 - 10:20 PM

Higher layers are supposed to be over flying enemies. If you have an issue with this, you need to use a lower layer
  • SkyLizardGirl likes this

#10 Deedee

Deedee

    Bug Frog Dragon Girl

  • Moderators
  • Real Name:Deedee
  • Pronouns:She / Her, They / Them
  • Location:Canada

Posted 23 September 2019 - 02:10 AM

npc script drawover
{
	void run()
	{
		while(true)
		{
			Screen->FastTile(6, this->X + this->DrawXOffset, this->Y + this->DrawYOffset - this->Z, this->Tile, this->CSet, OP_OPAQUE);
			Waitframe();
		}
	}
}

Untested, but try this.
 

Higher layers are supposed to be over flying enemies. If you have an issue with this, you need to use a lower layer


Sometimes that's not feasible. I assume it isn't for SkyLizardGirl considering her complex tileset she's using. In which case, a script request is the right call.


Edited by Dimentio, 23 September 2019 - 02:11 AM.

  • SkyLizardGirl likes this

#11 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 23 September 2019 - 02:34 AM

npc script drawover
{
	void run()
	{
		while(true)
		{
			Screen->FastTile(6, this->X + this->DrawXOffset, this->Y + this->DrawYOffset - this->Z, this->Tile, this->CSet, OP_OPAQUE);
			Waitframe();
		}
	}
}
Untested, but try this.
 

Sometimes that's not feasible. I assume it isn't for SkyLizardGirl considering her complex tileset she's using. In which case, a script request is the right call.



If that doesn't work, then change the layer arg to 7. Pretty sure that flying enemies don't offset their draws by Z, so ' - this->Z' may draw them in the wrong location.
  • SkyLizardGirl likes this

#12 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 23 September 2019 - 03:52 PM

Ok thank you, i will try this.*



#13 Jamian

Jamian

    ZC enthusiast

  • Members

Posted 24 September 2019 - 02:14 PM

Ok sorry.

 

I have the overlayers on the lowest, and the enemies are still flying under them.

 

They are not supposed to do that.

 

They are flying under mountains and sky tiles.

 

The combos are not the "Overhead" type, are they?


  • SkyLizardGirl likes this

#14 SkyLizardGirl

SkyLizardGirl

    Unbeknownst to danger we call upon your help

  • Banned
  • Real Name:Arianna Crystal Ritter
  • Location:Earthia

Posted 24 September 2019 - 11:09 PM

Guys, BigJoe also helped me with an enemy flies over overlayer script.

 

Thank you all for your help.*

 

 

Tiles where they were not overlayers, the bats still went under them back when.

 

I think it actually may of had something to do with Tree overlayers being on the same page as ground overlayers, you could walk under the trees, and technically the mountains too but they were Unreachable by solid combos.

 

That must have been why the bats still kept flying under them.

(Trees on the same overlayer pages as Mountains and overhead rocks were.)

 

Still my map was running out of space and i still really needed this script.

 

Thank you all.*


Edited by SkyLizardGirl, 24 September 2019 - 11:14 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users