How do I fix error about comparison

Get help using Construct 2

Post » Sun Dec 07, 2014 10:24 am

hi i have a problem about the comparison,

when I touch the enemy, and I chose number greater than the enemy's numbers. enemy destroyed. the problem comes when the enemy a lot.

seems to me difficult to explain, then below ther project files :)

ps: sorry for my english.. i use google translate :D
You do not have the required permissions to view the files attached to this post.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Mon Dec 08, 2014 3:52 am

Give this a try
You do not have the required permissions to view the files attached to this post.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Mon Dec 08, 2014 8:51 am

@emoaeden : thank you for your help :)
I've tried the file you attach. there is a little problem,, I add conditions Enemy.Count <= 11, I mean that the enemy is out to 12 enemies. the problem is when the enemy is destroyed, the enemy count it again from the beginning. how to keep the enemies that appear to 12 and when the enemy destroyed the count not back to the beginning.

*sorry if my english bad.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Tue Dec 09, 2014 10:40 pm

Can you link a file ?
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Sat Dec 13, 2014 8:23 am

@emoaeden thanks, but it's solved..
I add global variable for enemy,,,and group enemy spawn,, then check for enemyCount == 0, set group to deactived.
that's it. :)

thank you very much once again
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Feb 22, 2015 8:38 am

@emoaeden sorry I asked again.
I tried to make it again from scratch. follow the file you attach. with little change. but there is an error, when the sprite object is destroyed, the text object is not destroyed.
and also does not appear the word "success" which I have made.
here I attach the file.
please help. thanks
You do not have the required permissions to view the files attached to this post.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Wed Feb 25, 2015 2:58 am

First off, apologies for not answering sooner, but my internet has been down :'(

I can fix this whole problem for you and it would also minimise your script, by using containers. Now if you want to have a play with them, and do it yourself, be my guest (as they are a super handy thing to learn and understand) if you just want it to work, message back and I'll just do it for you.

:D
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Feb 25, 2015 4:09 am

@emoaeden thank you for replying.
I can not send private messages, because the problem of reputation.
I'd love to learn how to make games with construct 2, but with the urgent task, I want to make them quickly. I think I will learn with the help of you. thank you for helping.

p.s: sorry about my english
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Mar 01, 2015 4:42 am

All fixed ^_^
You do not have the required permissions to view the files attached to this post.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699


Return to How do I....?

Who is online

Users browsing this forum: Fenix18 and 58 guests