Hey!
I’m new to Wick, I’ve used it for a month or so.
I was trying to do a shop in a Clicker Game, and I put a Double Click in the shop, but instead of making it a double click it sums 4 (Double) and 2 (Normal)
Here are the scripts:
welcome to the community! can you send me your Wick Editor project file i want to check
also whats wrong with your game every thing seems fine
Before Edit
Just by looking at the picture, I can see that you’re making if statements without using { }
Here’s how an if statement should look like:
if(something){
//Something should happen
}
I’ll take a look at the file and see if there’s anything else that needs fixing
Edit:
Wait, I’m not sure but I think your if statements worked alright
Anyways, I added in something (in layer M.L. 5 lines in update and 1 line default script) that sees if the difference was made with your number, finds the difference, and adds it on to the score to have it be doubled. So technically, whatever the difference is, if the double click is bought, it should add double the points to your score. Here’s the file:
clicker game v2.99912-14-2020_7-12-22PM.wick (20.6 KB)
In the second button it starts adding more than it should have, i put 2 if not bought and 4 it bought but it makes 6 even when bought or not.
Also, yea, it kinda works, only that it adds 14 points (Aproximadetly, i don’t remember the exact amount.) the first time you click it, i’ll check if i can fix that, i’m not on my computer right now so i can’t edit the file, thanks for your help anyways!
Hey!
I just noticed that it put 6 and not 4 because I was putting project.score +=2 (it sums two to the points when clicked, and if you bought it (if (project.bought == 5) project.score += 4) it was doing what I asked it to do… (when clicked sum 2 and if bought sum 4, that means that it will put 6 because it was still putting 2 when clicked…