Search found 6 matches

by pat.clarke
Fri Sep 07, 2012 4:04 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

Re: [Help] How to move object to mouse clicked loaction

Thank you so much this was every thing I needed. The comments help so much!
by pat.clarke
Fri Sep 07, 2012 2:23 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

Re: [Help] How to move object to mouse clicked loaction

Edited

oops didn't see the post above :) ty so much!!!
by pat.clarke
Fri Sep 07, 2012 12:55 pm
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

Re: [Help] How to move object to mouse clicked loaction

Ty both I will look into both options can you please explain what all the numbers after x and y love.graphics.draw(hamster, x, y, 0, 1, 1, 64, 64) Also sorry i just cant seem to figure this out my self I now what to have to left click the image before i can tell it to go some wear with the right cli...
by pat.clarke
Fri Sep 07, 2012 11:57 am
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

Re: [Help] How to move object to mouse clicked loaction

Ty so much for all the quick replys! I updated post 1 with the working code so if any one ever does a search they should find a quick solution.

New issue is its that its moving my the top left corner of my .png file to the location selected. How do I move the center of the .png to selected location?
by pat.clarke
Fri Sep 07, 2012 10:34 am
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

Re: [Help] How to move object to mouse clicked loaction

Thank you for the quick reply :) I will test this out and give my feed back. I greatly appreciate your help. Ok looks like I may have miss understood. I get error "main.lua23: attempt to perform Arithmetic on global 'destX' (a nil value) Traceback main.lua:23: in function 'update' [C]: in funct...
by pat.clarke
Fri Sep 07, 2012 6:11 am
Forum: Support and Development
Topic: [Help] How to move object to mouse clicked loaction
Replies: 14
Views: 8406

[Help] How to move object to mouse clicked loaction

About Me Hi the name is Pat I have almost no coding experience. I am in Afghanistan board out of my minde lol So i figure why not put my time to good use. I have watched all the sock monkey tutorials and some of the love tutorials on the wiki. The question I was working on Love Tutorial:Hamster Ball...