Hide what is outside boundaries

Hi all,

I am totally new to Game development and I simply cannot figure this out.
I am playing around with a platform game, and I have got my character to move, turn, jump and attack - I even got the background layers to move independently.
Also boundaries are set and hidden - but here’s the problem:
I cannot hide what is on the other side of the boundaries…I tried to work with cameras but that just messes every thing up.
I have done a lot of searches both youtube, google and this forum but I have not been able to find anything - And if I should have overlooked the same topic here, I apologize.
Any suggestions as to what I am doing wrong?

What have you done so far? Can you provide screen shots of the events that work with the boundaries, as there are actions available to limit the camera movement within boundaries.

This s my Eventsheet so far :slight_smile:
again…i am a complete newbie…


i

Hi, you can center camera on Y player , but you must center camera on X player less the middle of windows width… exemple with windows widht at 1280 pixel: “center camera on player. X()- 640”; “center camera on player.Y()”.

Player.X()+640. Sorry, i have do error. It’s more, not less… :wink:

There is a center camera on an object within limits action. Use the player as the object.

Thank you so much for taking your time to answer me :slight_smile: Appreciate it !!
Your solution solved the problem at the beginning of the scene, but when i get to the end it still isn’t hidden.

1 Like

Thanking you for helping me :slightly_smiling_face:
I found that action, but i cannot figure out what numbers to put in…

Your boundary will have a size - along the x axis a minimum and maximum value (so the left-most, right-most values). For the y-axis, you’d put in those maximum and minimum values (so that’d be the top-most and bottom-most values):

1 Like