Search found 11 matches

by miniaturedog
Sun Aug 18, 2019 11:08 pm
Forum: Support and Development
Topic: [STI & hump] Movement system help
Replies: 2
Views: 3048

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...
by miniaturedog
Fri Aug 16, 2019 9:37 pm
Forum: Support and Development
Topic: [STI & hump] Movement system help
Replies: 2
Views: 3048

[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...
by miniaturedog
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: 3386

Re: Could not load LOVE game '/filecache/...' as it uses unsupported scheme 'content'. Please contact the developer.

tahoma wrote: Sat May 04, 2019 12:46 am I seem to have an issue similar to this one. Can you launch .love files from any location or only from love folder?
In order to open a main.lua, you need to have the apk in the same folder as the file. I think the same might be true for .love files too.
by miniaturedog
Wed May 01, 2019 5:16 pm
Forum: Support and Development
Topic: Mouse functions not working correctly [SOLVED]
Replies: 3
Views: 2891

Re: Mouse functions not working correctly

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
That works perfectly, thank you!
by miniaturedog
Wed May 01, 2019 4:12 pm
Forum: Support and Development
Topic: Mouse functions not working correctly [SOLVED]
Replies: 3
Views: 2891

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 ...
by miniaturedog
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: 3386

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...
by miniaturedog
Tue Apr 30, 2019 10:31 pm
Forum: Support and Development
Topic: Love2d touch functions?
Replies: 4
Views: 6338

Re: Love2d touch functions?

zorg wrote: Tue Apr 30, 2019 8:36 pm What parts of the wiki are unclear?
Essentially all of the love.touch section, for a beginner like me. I'm specifically not sure how to check if a touch is within a certain area of the screen (and make the player move if so), or how to use touch ids.
by miniaturedog
Tue Apr 30, 2019 10:22 pm
Forum: Support and Development
Topic: placing anim8 parameters inside a table
Replies: 4
Views: 3184

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...
by miniaturedog
Tue Apr 30, 2019 2:36 pm
Forum: Support and Development
Topic: [anim8] attempt to call method draw (nil value) [SOLVED]
Replies: 3
Views: 3215

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...
by miniaturedog
Tue Apr 30, 2019 2:27 pm
Forum: Support and Development
Topic: Love2d touch functions?
Replies: 4
Views: 6338

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...