not sure how much this will help but:
x < view_xview[0] + view_wview[0]
states that 'if the x-origin of the sprite is less then the right edge of the view'
If you say have a square sprite, and the origins are 0,0 (top right of the square. The code will
test if the left edge of the sprite is less that the right edge of the window.
In this case x+sprite_width would be the right edge of the sprite assuming the above conditions are true.
However, its late and I'm having trouble visualizing the problem, so I'll try yo get back to it when I'm
more refreshed if someone hasn't solved it by then.
edit: also, i need a wider wide-screen monitor, that line of code is looong xD
And I thank you, sir/madam!
Who knew something as small as 24 pixels could make that much of a difference -- You were right about it needing to measure from the right edge instead of the left edge of the block -- I have been working on trying to fix this problem for about 5 hours -- Thankyou so much!
I just changed "x < view_xview[0] + view_wview[0]" to "x < view_xview[0] + view_wview[0] - sprite_width" and sure enough! It fixed it!
*cheers*



Find content
Not Telling
