counting game

Get help using Construct 2

Post » Wed Jul 24, 2013 7:56 am

hi

   i'm planning to do number counting game,the game is like ,we have 1 grid view , in that one i have placed some numbers(text) and we will display one number in the right side assume(15), we have to add that number by touching objects in the grid view, what we have placed previously.

Is any body having ideas please share it.
B
5
S
2
Posts: 91
Reputation: 738

Post » Wed Jul 24, 2013 10:59 pm

You mean this game? :)

http://ludei.com/games/sumon
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Thu Jul 25, 2013 5:50 am

@Xionor

exactly same game.
B
5
S
2
Posts: 91
Reputation: 738

Post » Thu Jul 25, 2013 6:10 am

exactly same game. do you have any idea
B
5
S
2
Posts: 91
Reputation: 738

Post » Thu Jul 25, 2013 7:37 am

Example

I already posted this example in the other topic you opened under a different name.
Why do you post the name question twice, with two different users?LittleStain2013-07-25 07:42:10
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jul 26, 2013 12:10 pm

hi,

your example is very nice,thanks for that. i need some some help. i have took some objects from your example.Actually i need that, if total=13 by touching the numbers it has to count 13 ,if the count is more than 13 , it should not count , it has to stop the touch with some effect and if the count is equal to 13 that number has to destroy and that touch fields has to destroy . can any some help me please.


https://www.dropbox.com/s/rap8nyezihvznpf/demo_number.capx
B
5
S
2
Posts: 91
Reputation: 738

Post » Fri Jul 26, 2013 12:50 pm

It seems to me you took my example and removed what you thought you didn't need.
Unfortunately you also took away a lot of things you do need if you want it to work like you said above.
The things you ask for now are relatively easy if you know how to make a program with Construct2.

Add another condition to the event adding the framenumber.
System compare to values - Total wanted - is equal or less than - total + framenumber
this way the event will not trigger when the count will be more than total wanted.

instead of restarting the layout when wanted total is reached just destroy the selected numbers and set total to 0 and wanted total to random.

To see which numbers were selected make a boolean variable on the sprite and trigger this to true if clicked on.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jul 26, 2013 1:24 pm

thanks @LittleStain.

makes me think.
B
5
S
2
Posts: 91
Reputation: 738

Post » Tue Jul 30, 2013 11:04 am

hi

   Again i have got some problem.when i'm counting numbers the total wanted and actual is same ,at that time the only selected numbers has to destroy but for me every thing is destroying. and the wanted total also not changing at that time. can any one please guide me please.

https://www.dropbox.com/s/rap8nyezihvznpf/demo_number.capx
B
5
S
2
Posts: 91
Reputation: 738

Post » Tue Jul 30, 2013 11:47 am

I don't know what you were trying to do with the boolean variable, but you were setting it to true in 3 different events. There was even an event, which set the boolean to true if the boolean was true.

Compare this capx I've made to the one in your last post and try to understand the differences.

demo number improved
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: plinkie and 25 guests