Search found 40 matches

by Todespreis
Fri Jun 16, 2023 1:47 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

Oh, thanks! Did'nt know that
by Todespreis
Fri Jun 16, 2023 1:45 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

If i change player to player.image, the compiler says: "Incorrect parameter type: expected userdata." in love.graphics.draw.
Sorry, it's just as hard as learning a new language - i have to look up every single word, function and character
by Todespreis
Fri Jun 16, 2023 1:19 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

And thanks for replying :-)
by Todespreis
Fri Jun 16, 2023 1:18 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

But it worked. And like i said, my version of Love2d is 12 years old
by Todespreis
Fri Jun 16, 2023 12:37 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

I still have 2 questions to it - is it necessary to implement the vector(?) player = { } before player = love.graphics.newImage ? Does it have any differences? And @dusoft can you recommend any? I have the problem, that i'm trying to write the code for an old device named GP2X. @SCIENCE, a user here...
by Todespreis
Fri Jun 16, 2023 12:18 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Re: Image load?

Hey there! Thank you for the fast reply, so i tried it out and this is, what worked at the end: local player function love.load() player = {} player.x = 70 player.y = 70 player = love.graphics.newImage( "Player.png" ) end Down={} function love.joystickpressed( joystick, button ) Down[butto...
by Todespreis
Thu Jun 15, 2023 8:56 pm
Forum: Support and Development
Topic: Image load? [SOLVED]
Replies: 13
Views: 5472

Image load? [SOLVED]

Hey there! I have a problem with an image file. My code is still at the beginning: function love.load() player = love.graphics.newImage"Player.png" player = {} player.x = 70 player.y = 70 end function love.draw() love.graphics.draw(player) end the compiler says: "could not find love.i...
by Todespreis
Sun Apr 02, 2023 9:23 pm
Forum: Support and Development
Topic: Character Movement
Replies: 6
Views: 1256

Re: Character Movement

Okay, i understand, the function has two values, one for the boolean and one for the button number. But i don't get it working. Thanks for the fast reply, i'll try it tomorrow. Gute Nacht!
by Todespreis
Sun Apr 02, 2023 8:04 pm
Forum: Support and Development
Topic: Character Movement
Replies: 6
Views: 1256

Re: Character Movement

Thank you for the fast reply! Sorry for my bad english, it's not my first language and sometimes i'm not able to say something in a right way. Well now, after you wrote it, i can actually see, that i'm using 2 fuctions with the same name and yes, it is of course nonsense. So which function would be ...
by Todespreis
Sat Apr 01, 2023 10:04 pm
Forum: Support and Development
Topic: Character Movement
Replies: 6
Views: 1256

Character Movement

Hey there! I'm new to LÖVE and Lua and i'm trying to code my first game. And my first obstacle is the movement of a character. So if i write: function love.joystickpressed( joystick, button ) if button==11 then player.x = player.x + 1 end end function love.joystickpressed( joystick, button ) if butt...