Help me with Scirra Construct v 1.2

For questions about using Classic.

Post » Tue Mar 12, 2013 6:02 pm

Intro:
I have 4 Objects in my game: Player, Monster (100x), Bullet, Particles.
And 3 variables (Hit Count, Killed, Soul).

Events:
1) On left mouse button click - Player spawn obj. Bullet;
2) On collision with Bullet & Monster - Bullet spawn obj. Particles;
                                      - Add 1 to "Hit Count";
3) "Hit Count" = 4 - Monster destroy;
                   - Add 1 to "Killed";

The problem:
I thought that how many monsters are destroyed, so many + to "Killed". But if 2 (3 \ 4 \ ...) monster are destroyed together, to "Killed" + only 1, how to fix it?
Help!!!
B
2
Posts: 6
Reputation: 287

Post » Tue Mar 12, 2013 9:31 pm

Is "hit count" a global variable? If so, it works properly, make it local to every enemy and your problem should be solved.Pecek2013-03-12 21:33:15
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Wed Mar 13, 2013 11:56 am

"hit count" is local variable
B
2
Posts: 6
Reputation: 287

Post » Wed Mar 13, 2013 2:00 pm

to enemy
B
2
Posts: 6
Reputation: 287

Post » Wed Mar 13, 2013 6:34 pm

I made it for you, it works correctly here

ClickPecek2013-03-13 18:44:41
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Thu Mar 14, 2013 2:59 pm

THANKS A LOT
B
2
Posts: 6
Reputation: 287

Post » Thu Mar 14, 2013 3:20 pm

There is one little problem : When I launch your file, I see this error:
"Failed to load application: this file was saved in newer version of Construct. Please click 'Check for updates'."

And when i click on it I see :
"Your version of Construct (Classic r1.2) appears to be up to date"

How can I fix it?
B
2
Posts: 6
Reputation: 287

Post » Thu Mar 14, 2013 8:12 pm

@lyonya
You can download the R2 from here.

No problem.:)
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Thu Mar 14, 2013 9:51 pm

Thank you for link.
But the problem is still available:
Monsters in your example are not movable. And if they are moving, they can be one on another and bullet can shout them together. If bullet shoots two(three\etc.) monsters together and their "hit count" was 3, to "killed" + only 1 (destroyed two monsters, but + only 1).
B
2
Posts: 6
Reputation: 287


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests