Bug with private varaibles

This forum is currently in read-only mode.
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Hi everyone! In my game there's a family called "red". It's the family for different types of projectiles my hero shoots. There are varaibles called "explosive" and "ghost". If the first one is equal to 1 bullet has to spawn explosion object on collision with solid object or enemy. Varaible "ghost" has another function. If it is equal to 0 bullet has to be destroyed on any collision. If it is equal to 1 it has to go through enemies but not through solids. If it is equal to 2 it has to go through any object. And here's my problem: my event sheet has to look like this, but explosive bullets spawn explosions only on collision with solid objects.

    <img src="http://s12.radikal.ru/i185/1209/2d/c16e66e5dd64.jpg" border="0" />

    But if it looks like this it works fine. Why?

    <img src="http://s57.radikal.ru/i157/1209/48/e2f60999b4ab.jpg" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Any suggestions?

  • I think you'll need to put the enemy family conditions inside a "For each Family object" loop, not sure though. I've come to realize family objects are very buggy <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Thanks Jayjay! "For each Family object" loop helped to solve this problem.

  • Awesome, glad to hear Wolod <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)