Size

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Scriptoar
Prole
Posts: 13
Joined: Sun May 08, 2011 8:49 am

Size

Post by Scriptoar »

Is there a way to make your game full screen?
moar tacos = better life

u liek?
Scriptoar
Prole
Posts: 13
Joined: Sun May 08, 2011 8:49 am

Re: Size

Post by Scriptoar »

Nevermind, I figured it out.
moar tacos = better life

u liek?
Scriptoar
Prole
Posts: 13
Joined: Sun May 08, 2011 8:49 am

Re: Size

Post 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?
moar tacos = better life

u liek?
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Size

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests