Hey guys! I have a small demo I am working on, and there is a player and some camera movement. Thinking about it, I have never done this before so I am not quite sure how to go about executing it.
Basically I would like items and such to appear but only within the bounds of the camera to effectively not slay the used ram.
I thought about cheating, and using an invisible box that was the same dimensions as the screen, set the scrollX and scrollY to 0(to make this box scroll with the player) then just set the coordinates of the spawned items to the invisible screen coordinates to only spawn stuff where the player can see it.
Let me know what you guys think!
Thanks