Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pls can you teach me how do you just programmed to the objects appear when you move the window? (in java or, more likely, in processing java)

I'm a bit confused by your question so let me know if I answered to it, but the entire level and all objects always exist. Moving the window just changes your viewport/camera on the level. If I wanted, I guess I can deactivate objects that are a couple pixels out of camera view but I didn't really feel like there was any major performance issue where that was a necessary measure.

But How can i do that? Like, Just a circle that when i move the windows It appears? I can see that you used Java and Thats my language too! Pls help me!

Actually, I used a proprietary language from GameMaker. Sorry I'm still not understanding your question though. Every object in a level exists and are never deactivated or anything like that. The window just acts as a camera/viewport of the level with a physics object attached. It's similar to a sidescrolling action game.

(2 edits)

Ok, I understand. The problem is that you used gamemaker while I use java! Anyway, thanks for the atention!

Also sub to my Channel!

https://youtube.com/channel/UCii3YKt-WH7IhRN9v3ZP15g


Edit: Yes i'm Brazilian

There are window controllers that exist for Java that you can use to achieve a similar effect. Java shouldn't be something that's limiting you.

Thanks! I'll try to find in YouTube some tutorials