H
hazonsassoun
Guest
Hello,
I have a very big sprite like this, with a PRECISE collision box:
http://www.noelshack.com/2018-51-4-1545342830-lv-1.png
As you can see, this is the ground of my game, and its width is 4096px. And I would like to know what's the height of the ground at x=300 for example.
I know I could write a script that tests position_meeting or place_meeting at each Y but I think it would be very slow to do each frame of the game. Is there any smarter method ? Thanks.
I have a very big sprite like this, with a PRECISE collision box:
http://www.noelshack.com/2018-51-4-1545342830-lv-1.png
As you can see, this is the ground of my game, and its width is 4096px. And I would like to know what's the height of the ground at x=300 for example.
I know I could write a script that tests position_meeting or place_meeting at each Y but I think it would be very slow to do each frame of the game. Is there any smarter method ? Thanks.