Search found 6 matches

by WahWah
Sun May 26, 2013 7:54 pm
Forum: Support and Development
Topic: Moving....stuff!
Replies: 5
Views: 2136

Re: Moving....stuff!

Yeah. I already know that :) What i mean is that i want to move a desired amount of pixels and then stop. :) Thanks anyway :) Is it for jumping or for smooth movement? If you want to implement jumping, then you do it just like Sheepolution suggested and in each timestep do velocity.y = velocity.y +...
by WahWah
Sun May 26, 2013 4:56 pm
Forum: Support and Development
Topic: Moving....stuff!
Replies: 5
Views: 2136

Re: Moving....stuff!

So you can do this: x-position = 400 That's teleporting. But what you want to do is this: x-position = x-position + speed And I can recommend you to use dt (deltatime). So in the end you get something like this: function love.main() image = newImage("image") x = 10 y = 200 speed = 100 end...
by WahWah
Sat May 25, 2013 9:22 pm
Forum: Support and Development
Topic: Moving....stuff!
Replies: 5
Views: 2136

Moving....stuff!

Hello! :D

I am very new to lua and i just want to know how i can get an object to move a designated length
instead of teleporting instantly :)
For example when jumping.
I just want to tap w for example and i want the player to move up a specific length smoothly.
by WahWah
Fri Apr 19, 2013 10:44 pm
Forum: Support and Development
Topic: I'm the biggest noob... Image size
Replies: 3
Views: 3203

Re: I'm the biggest noob... Image size

When you draw the image with love.graphics.draw , use the scale parameters to change its size. It's a scale factor so anything below 1 makes it smaller and anything higher makes it bigger. love.graphics.draw(myImage, 10, 10, 0, 2, 4) -- The image will be two times its size horizontally and four tim...
by WahWah
Fri Apr 19, 2013 10:12 pm
Forum: Support and Development
Topic: I'm the biggest noob... Image size
Replies: 3
Views: 3203

Re: I'm the biggest noob... Image size

When you draw the image with love.graphics.draw , use the scale parameters to change its size. It's a scale factor so anything below 1 makes it smaller and anything higher makes it bigger. love.graphics.draw(myImage, 10, 10, 0, 2, 4) -- The image will be two times its size horizontally and four tim...
by WahWah
Fri Apr 19, 2013 9:10 pm
Forum: Support and Development
Topic: I'm the biggest noob... Image size
Replies: 3
Views: 3203

I'm the biggest noob... Image size

Hi!
Completely new to much of this stuff :)
I wonder how i can make small images like 16x16 etc appear larger on the screen
without making them higher resolution :)
Like pixel size or something :P