Getting

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Findo777
Prole
Posts: 36
Joined: Tue Feb 25, 2014 4:09 am

Getting

Post by Findo777 »

Is there any way to get the X and Y of something?
I know you can get the height and width, but anyway to get X and Y?
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Getting

Post by davisdude »

Not by default. You could make one, though.
EDIT: (Unless you're using love.physics, then I think you can, but don't hold me to that, I have never used it before).
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Findo777
Prole
Posts: 36
Joined: Tue Feb 25, 2014 4:09 am

Re: Getting

Post by Findo777 »

Awww
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Getting

Post by Ranguna259 »

From what ?
Post any further question in the "Support and Development" section of the forum
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Getting

Post by slime »

Most objects don't have a position, so it wouldn't make sense to get or set it.

For drawable objects (images, etc.) you draw them at a certain position, you don't set the object's position.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests