What's wrong with this puzzle game?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
What's wrong with this puzzle game?
I tried my hand at making a very simple puzzle game I saw on mobile. The point is, the correct answer is the green square, and you are supposed to click to squares that, when added together, become the same as the answer. I'm sure you'll understand if you look at the code. For some reason it's not behaving correctly. Sometimes, even if I only press one square once it creates new squares and a different answer, which is supposed to happen when you have pressed two. I just don't understand what's wrong?
- Attachments
-
- main.lua
- (4.1 KiB) Downloaded 83 times
Re: What's wrong with this puzzle game?
Your collision function has a typo. > h2 should be > y2
Re: What's wrong with this puzzle game?
God dammit, thanks! I was pulling my hair out over this bug!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests