Score/Respawn

Chat about anything not covered in these forums, but keep it civil!

Post » Sat Nov 20, 2010 2:17 am

Okay. so i have this mouse game where you get as much cheese as you can and not die by running into moldy cheese. I have the scoring system, the cheese, but I need to know how to respawn the cheese after you eat it and how to add points when you eat it. Please help. :D
B
2
G
2
Posts: 14
Reputation: 678

Post » Sat Nov 20, 2010 3:37 am

...wrong section? :oops:

This should be posted in the "Help and Support using Construct" section (along with your .cap file, maybe) .


I'm not the best person to ask but you could make a variable called "cheeseeaten" and have it's value be "0" at the start of the layout. When the character's sprite touches the cheese you could change the value to "1".

You could then make a condition starting with the system object that compares the global variable "cheeseeaten" to see if it is equal to "1". If it is equal to one then you could use the "create object" option (system) to make another piece of cheese at the same coordinates as the original (don't forget to reset "cheeseeaten" to 0 afterwards).

I'm not sure what your problem is with adding points when you get the cheese, though. You said that you already have a scoring system? :?

Just make a global variable called "cheese" and have it's initial value be zero. Make a "trigger once while true" condition and make it so that when the character sprite touches the cheese sprite it increases the value of "cheese" by one.

Good luck!
B
4
S
2
G
4
Posts: 401
Reputation: 2,302


Return to Open Topic

Who is online

Users browsing this forum: Slenderman8557 and 5 guests