This is more of a game logic / event logic question, bear with me please :)
Window is 640x480
I have a layout, it has 1000000 width, 480 height, and there is a bullet flying through from left to right, screen is set to every tick scroll to bullet. You control the bullet up/down.
Every tick on random(10)<2 I create a target on Y random(480), X = scrollx+640 (on the right, off the screen, so it appears in a second and goes from right to left, so that you can hit it with your bullet)
easy enough, the problem starts after a few whiles, because of the targets you didn't hit stay to the left of view, right? best thing to do is destroy them, if they are on the left side of view. so, I did and this is crucial:
target: compare X < scrollX - 640
it should work right? well guess what, it doesn't :) is there something with my brain or is it a huge bug in construct?