Search found 8 matches

by H.I
Sun Jun 16, 2024 3:36 pm
Forum: Support and Development
Topic: Help with Inventory system!
Replies: 11
Views: 4005

Re: Help with Inventory system!

RNavega wrote: Mon Jun 10, 2024 12:43 am
H.I wrote: Sat Jun 08, 2024 8:15 am
Hi. In that code the loops are redundant as you're not using the "x" and "y" variables.
The function can be reduced to just this line, "self.arr[iy][ix] = 0"
Thank you for noticing, i guess i didn't notice that.
by H.I
Sat Jun 08, 2024 8:15 am
Forum: Support and Development
Topic: Help with Inventory system!
Replies: 11
Views: 4005

Re: Help with Inventory system!

if i understand your request, you need to put this code in inventory.lua -- ix = index x, iy = index y in table function inventory:removeItem(iy,ix) local stop = false for y=1,#self.arr do for x=1,#self.arr[1] do self.arr[iy][ix] = 0 break end end end any time you want to delete an item from table(i...
by H.I
Sun May 21, 2023 3:51 am
Forum: Support and Development
Topic: love.physics.setMeter() changes behaviour but not the size of drawn bodies
Replies: 3
Views: 1338

Re: love.physics.setMeter() changes behaviour but not the size of drawn bodies

s = love.physics.newRectangleShape( body, x, y, width, height, angle )

you are not attaching it to any body, and this is how i use meter:

meter = 10
love.physics.setMeter(meter)

world = love.physics.newWorld(0,100*meter,true)
by H.I
Sun Apr 23, 2023 10:09 am
Forum: Support and Development
Topic: how do i get the current Frame in anim8
Replies: 2
Views: 919

Re: how do i get the current Frame in anim8

thanks!,it worked :awesome:
by H.I
Sun Apr 23, 2023 9:12 am
Forum: Support and Development
Topic: how do i get the current Frame in anim8
Replies: 2
Views: 919

how do i get the current Frame in anim8

so i am trying to get the current frame that is being drawn, but i don't know how to do that, i tried alot of things but nothing really works, getFrameInfo is just giving me error after error,plz help :death:
by H.I
Thu Mar 30, 2023 10:30 am
Forum: Support and Development
Topic: How do i change my map position without losing the pixle
Replies: 4
Views: 1451

Re: How do i change my map position without losing the pixle

no, thats not what i meant, thanks ^^
by H.I
Thu Mar 30, 2023 4:12 am
Forum: Support and Development
Topic: How do i change my map position without losing the pixle
Replies: 4
Views: 1451

Re: How do i change my map position without losing the pixle

Could you clarify what you mean by cutting the pixels? Do you want to move the colliders with the map or do you mean the brown tiles at the bottom not being drawn anymore? Please post a .love of your game with all the neccesary files to run it ^^ yea, the brown tiles are not drawn properly. Lovegam...
by H.I
Wed Mar 29, 2023 4:29 pm
Forum: Support and Development
Topic: How do i change my map position without losing the pixle
Replies: 4
Views: 1451

How do i change my map position without losing the pixle

hey, so i got a problem with changing the position of a map by drawing the map like: map:draw(0,10), the map is going down but the pixles are also cutting. how do i change the map position without losing its pixle. this is my code,plz help ^^ Screenshot_20230329-214035.png Screenshot_20230329-214134...