Mikee
Active Member
- Jul 8, 2017
- 162
- 102
- Thread starter
- #21
I don't think this code will actually work if you face the other direction as you only check X?
And not sure what you're talking about.
The direction doesn't matter. Its storing which tile the avatar is on.
The way boosting works, is that it "pushes" the avatar on the same tile over and over again.
I was suprised to but i just printed Habbo.pX while boosting an saw that itd only print the same tile over and over again.
So it runs a loop backwards for a small range (200) and checks the elements of half of that range (up to 100).
so from List.Length --> list.Length/2.
Why did i decide to loop backwards?
Because, when a user walks in the room, it'll store they're pX walking tile squares up to the point when they get on the booster so looping forwards would skew the results.
E.g. The tiles being stored for pX I enter booster room, [0], i walk to the booster tile [0,1,3,6,7,4], i begin boosting [0,1,3,6,7,4,4,4,4,4,4,4,4,4,4,4,4...]
So looping backwards checks the proper figures.
Secondly, ur first comment on this thread was "Amazing memory leak!"
I was wondering how a simple for loop can have a memory leak and what u meant by it.