Search found 6 matches
- Sun May 26, 2013 7:54 pm
- Forum: Support and Development
- Topic: Moving....stuff!
- Replies: 5
- Views: 2238
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 +...
- Sun May 26, 2013 4:56 pm
- Forum: Support and Development
- Topic: Moving....stuff!
- Replies: 5
- Views: 2238
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...
- Sat May 25, 2013 9:22 pm
- Forum: Support and Development
- Topic: Moving....stuff!
- Replies: 5
- Views: 2238
Moving....stuff!
Hello!
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.
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.
- Fri Apr 19, 2013 10:44 pm
- Forum: Support and Development
- Topic: I'm the biggest noob... Image size
- Replies: 3
- Views: 3336
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...
- Fri Apr 19, 2013 10:12 pm
- Forum: Support and Development
- Topic: I'm the biggest noob... Image size
- Replies: 3
- Views: 3336
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...
- Fri Apr 19, 2013 9:10 pm
- Forum: Support and Development
- Topic: I'm the biggest noob... Image size
- Replies: 3
- Views: 3336
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
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