Page 1 of 1
Size
Posted: Tue May 10, 2011 1:10 am
by Scriptoar
Is there a way to make your game full screen?
Re: Size
Posted: Tue May 10, 2011 1:28 am
by Scriptoar
Nevermind, I figured it out.
Re: Size
Posted: Tue May 10, 2011 1:40 am
by Scriptoar
How would you make it so when you reach the end of one corner of a box, it continues and loads a new section?
Re: Size
Posted: Tue May 10, 2011 3:15 am
by BlackBulletIV
Collision detection is what you need. You've basically got to constantly check whether the player's x/y position is the same or within a certain range of the x/y position of the desired corner. Like this:
Code: Select all
if player.x == box.x + width and player.y == box.y + height then -- this is check for the bottom corner
-- load section
end
Also, in cases like these, don't double post; edit your post and add your message, preferably prefixed for "EDIT: " or the like.