by EvanBlack » Tue Oct 11, 2011 9:20 pm
Edit: Nevermind, I figured out a new way to do it. instead of putting each individual actor on the bottom, I just move the view to the bottom and shift my tiles then bring the view back up. This same process would work for all actors.
The problem with doing it that way, which I did originally, is that I would then have to do a --notTileCount after the while loop. Its not exactly a problem but its just redundant..
basically the count has to increase before array, so that when the loop ends I don't have this
++notTileCount;
--notTileCount;
As I said its just redundant, and this loop will be happening for around 50+ times so then I have 100 redundant addition subtractions, that don't need to be there.
All the code in the function is all the code really, that function will work replacing the nodeworldX and nodeworldY with the current actors x,y positions, and view_mh ect.. with the size of the array that holds the actors.
If it makes it easier... here is the ged.
(\__/) ( Soon... The world)
(O.o )< will be mine!____)
(> < ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bunny Overlord 2012!