Mirage Source
[Feature] Y-based sprite rendering! - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+------ Forum: Tutorials (https://mirage-engine.uk/forums/forumdisplay.php?fid=13)
+------ Thread: [Feature] Y-based sprite rendering! (/showthread.php?tid=2544)

Pages: 1 2


Re: [Feature] Y-based sprite rendering! - Labmonkey - 22-07-2009

Mozza Wrote:if i was you i would remove PlayersOnMapHighIndex, put it this way.

Your index = 2. Your the only one on the map so PlayersOnMapHighIndex = 1, the loop will only draw index 1 so you will not draw. Well thats what from veiwing the code in mirage. If im wrong let me know

EDIT
ok i just seen the playeronmap bit so i guess im wrong about that, but Robin i did think highly of you until now.

If Player(i).Y = Y Then TUT TUT your checking the I not playersonmap so if your the only one on the map your checking the position of Index 1 not nessesary your Index. so if you are the only one on the map and your index is 2 If Player(i).Y = Y Then will return 0 every time Smile as the PlayersOnMapHighIndex will be 1 so the loop will only check for 1

Change
Code:
Player(i).Y = Y

to
Code:
Player(PlayersOnMap(I)).Y = Y
maczosoft is back lol.


Re: [Feature] Y-based sprite rendering! - Mozza - 23-07-2009

old memories Smile


Re: [Feature] Y-based sprite rendering! - Mozza - 28-07-2009

Yer I've stopped it from being checked over and over and only setting it where needed so thats saved alot of stress looping over and over.


Re: [Feature] Y-based sprite rendering! - jaheoo - 29-07-2009

Great tutorial, installed it and it worked. Smile