Search found 42 matches

by Mateus
Sun Feb 14, 2016 5:37 pm
Forum: Support and Development
Topic: Slots offset problem
Replies: 7
Views: 1819

Re: Slots offset problem

pgimeno wrote:I think your problem is here:

Code: Select all

         if v.y > 360 then
            v.y = -60 + column1.yMove/2
Try changing it to:

Code: Select all

         if v.y >= 360 then
            v.y = v.y - (360+60)
Youp, seems like it fixed it, THANKS! But why it does that ? Isn't it engine problem ?
by Mateus
Sun Feb 14, 2016 10:07 am
Forum: Support and Development
Topic: Slots offset problem
Replies: 7
Views: 1819

Re: Slots offset problem

It still happens.
by Mateus
Sun Feb 14, 2016 9:32 am
Forum: Support and Development
Topic: Slots offset problem
Replies: 7
Views: 1819

Re: Slots offset problem

require "mathlib" items = {} items[1] = love.graphics.newImage("icons/bell.png") items[2] = love.graphics.newImage("icons/diamond.png") items[3] = love.graphics.newImage("icons/emerald.png") items[4] = love.graphics.newImage("icons/goldbar.png") ite...
by Mateus
Sat Feb 13, 2016 11:03 pm
Forum: Support and Development
Topic: Slots offset problem
Replies: 7
Views: 1819

Slots offset problem

Hello, I am making a video slot machine game, but I have a weird problem. I have 5 boxes going from y: 0 to y: 100 for example. the size of the box is 10. So, when the box y is equal or greater then 100 - 10, its position is set to 0. BUT, the faster it spins, there are some weird offsets between th...
by Mateus
Mon Apr 06, 2015 10:13 am
Forum: Support and Development
Topic: Mathematics help
Replies: 6
Views: 1535

Re: Mathematics help

Thank you sir.
by Mateus
Mon Apr 06, 2015 12:54 am
Forum: Support and Development
Topic: Mathematics help
Replies: 6
Views: 1535

Mathematics help

Check out this web (CS:GO case simulator) first http://case.convars.com/ Now, does anyone have any idea, how to calculate which item is the one I get ? My "spin" works like this : Random speed and random "slowdown value" is set when I "open case". SO it looks like this....
by Mateus
Mon Apr 06, 2015 12:48 am
Forum: Support and Development
Topic: Some error I dont even know how to name it
Replies: 6
Views: 2152

Re: Some error I dont even know how to name it

I was trying to draw an image that was not set.

I had a table, with 2 images, but accessing it with math.random(1,3). It has to be random(1,#table) ofcourse.
by Mateus
Sun Apr 05, 2015 12:42 pm
Forum: Support and Development
Topic: Some error I dont even know how to name it
Replies: 6
Views: 2152

Re: Some error I dont even know how to name it

---PROBLEM SOLVED---
by Mateus
Sat Apr 04, 2015 11:02 pm
Forum: Support and Development
Topic: Some error I dont even know how to name it
Replies: 6
Views: 2152

Re: Some error I dont even know how to name it

sorry :

Error: caseSpin.lua:265: attempt to index field 'itemImage' (a nil value)
stack traceback:
caseSpin.lua:265: in function 'spinDraw'
main.lua:136: in function 'draw'
[string "boot.lua"]:446: in function <[string "boot.lua"]:413>
[C]: in function 'xpcall'
by Mateus
Sat Apr 04, 2015 10:21 pm
Forum: Support and Development
Topic: Some error I dont even know how to name it
Replies: 6
Views: 2152

Some error I dont even know how to name it

Hello community, I continue making my CS:GO case simulator, and I am seriously stuck now. Do not mind my style of programming or some basic mistakes, if it's just a detail... I am learning. What's the problem ? well, I have for, that for some reason, in unspecific time splits out .. well, nothing : ...