Search found 11 matches
- Sun Aug 18, 2019 11:08 pm
- Forum: Support and Development
- Topic: [STI & hump] Movement system help
- Replies: 2
- Views: 3222
Re: [STI & hump] Movement system help
Thank you! I fixed it (mostly) by just deciding not to use a camera at all since I looked around the forum and other people have had the same problems with STI and hump. The player is moving on 32-pixel increments, but you're initially placing it in the center of the window, and neither 800/2 nor 60...
- Fri Aug 16, 2019 9:37 pm
- Forum: Support and Development
- Topic: [STI & hump] Movement system help
- Replies: 2
- Views: 3222
[STI & hump] Movement system help
Hey everyone, I've been working with Love2d to create a rough movement system for a game, only using the STI and hump libraries so far. I've got almost everything working, but I've run into a few problems. The intent is to have the player object (a 32x32 purple square hastily downloaded from a tutor...
- Tue May 07, 2019 3:56 pm
- Forum: Support and Development
- Topic: Could not load LOVE game '/filecache/...' as it uses unsupported scheme 'content'. Please contact the developer.
- Replies: 4
- Views: 3523
- Wed May 01, 2019 5:16 pm
- Forum: Support and Development
- Topic: Mouse functions not working correctly [SOLVED]
- Replies: 3
- Views: 3043
Re: Mouse functions not working correctly
That works perfectly, thank you!keharriso wrote: ↑Wed May 01, 2019 4:45 pm Add this to player.lua:
Code: Select all
function love.mousepressed(x, y, button, istouch, presses) mouseX = love.mouse.getX() mouseLeft = mouseX < love.graphics.getWidth() / 2 mouseRight = mouseX > love.graphics.getWidth() / 2 end
- Wed May 01, 2019 4:12 pm
- Forum: Support and Development
- Topic: Mouse functions not working correctly [SOLVED]
- Replies: 3
- Views: 3043
Mouse functions not working correctly [SOLVED]
Earlier I made a post asking how touch functions in Love2d work and was given the suggestion to try mouse functions instead, since I don't need to manage simultaneous touches. My goal is to make the player move left or right depending on which (horizontal) half of the screen is touched/clicked, but ...
- Tue Apr 30, 2019 10:41 pm
- Forum: Support and Development
- Topic: Could not load LOVE game '/filecache/...' as it uses unsupported scheme 'content'. Please contact the developer.
- Replies: 4
- Views: 3523
Re: Could not load LOVE game '/filecache/...' as it uses unsupported scheme 'content'. Please contact the developer.
I'm honestly not sure what could be causing the problem, but since I use the 11.1 version of LÖVE that you linked on my android phone and it works perfectly fine for me, I can tell you how I use it, and hopefully it might help. I don't use dropbox to load LÖVE files; I have an app called ES File Exp...
- Tue Apr 30, 2019 10:31 pm
- Forum: Support and Development
- Topic: Love2d touch functions?
- Replies: 5
- Views: 7872
- Tue Apr 30, 2019 10:22 pm
- Forum: Support and Development
- Topic: placing anim8 parameters inside a table
- Replies: 4
- Views: 3392
Re: placing anim8 parameters inside a table
Your problem is with your table itself. You need to have an equals sign so that player { becomes player = { . Also, items within a table have commas, except for the last line, like so: table = { item 1, item 2, item 3 } So your fix should be: function love.load() player = { img = love.graphics.newIm...
- Tue Apr 30, 2019 2:36 pm
- Forum: Support and Development
- Topic: [anim8] attempt to call method draw (nil value) [SOLVED]
- Replies: 3
- Views: 3537
Re: [anim8] attempt to call method draw (nil value)
The code snippet you posted is different from the actual code in the love file. The actual fix is calling player.animation:draw (not animation s ). You're right, thank you! I must've read over that a million times and never caught the error LOL And yes, I realized the code was different after I pos...
- Tue Apr 30, 2019 2:27 pm
- Forum: Support and Development
- Topic: Love2d touch functions?
- Replies: 5
- Views: 7872
Love2d touch functions?
The title was too short to explain my problem fully, so here it is: Right now, keyboard movement controls for my game are working perfectly ("a" to move left, "d" to move right, "space" to jump). However, I also want to test movement on my Android phone, and I'm not sur...