English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. AMOS (https://eab.abime.net/forumdisplay.php?f=119)
-   -   Z Ordering? (https://eab.abime.net/showthread.php?t=101997)

AF2013 28 April 2020 23:33

Z Ordering?
 
I am stuck on Z Ordering. Let just say you got Airplane and Island.

Island at the bottom where the Airplane is top.

When come running the program, Island is top of the Plane. I try to plane Bob Sprites on top of Island Bob but for reason, Island Bob sprites is top of the airplane bob.

How do you do Z order in Amos?

roondar 28 April 2020 23:58

So, I haven't done AMOS programming in years, but my gut feeling is it works the same as in most languages: draw the Bobs in the correct order manually. Meaning: if you want the Island to be behind the Airplane, draw the Island first and then the Airplane. And vice versa if you want to reverse the priority.

This changes a bit if you are using hardware Sprites for either of the two (which isn't very clear from your text). Normally hardware Sprites will be on top of all other things in AMOS. This may or may not be a setting you can change, I can't remember after all these years.

AF2013 29 April 2020 00:40

Thanks Roondar :)

It called Bob Priority where you sort the order which one to draw first :)

Another things I have learn is make sure that Iff image and all the bob image in same palette otherwise it going mess the palette it up which what I have done before!


All times are GMT +2. The time now is 11:55.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04273 seconds with 11 queries