Simulation going haywire!

0 favourites
  • 4 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • Hi guys,

    So I am creating this little simulation of sorts where a number of healthy cells spawn in a set amount of time and there's this virus that infects them. So after the infection, it kind of shrinks over time and gets destroyed. An infected cell also passes the infection to a healthy cell as well.

    I got actually pretty far in making the whole thing work but now it seems that it's going all sorts of wrong! I think I've done something really dumb somewhere. I'm attaching gifs and the event sheets to show you what's goin on as best as I can. Thanks in advance.

  • I think I messed up the gif insertion in the topic...sorry.. but here it is

    media.giphy.com/media/lRdGQ3CTWDu4tubRbC/giphy.gif

  • Well, your event #7 is wrong. It doesn't affect one infected cell, it affects all currently infected cells, restarting Sine for all of them, changing scale back and forth...

    If you want every infected cell to shrink over time, use Timer behavior, or Sine/LiteTween (with a long period time). But you need to do for one created instance, not for all instances at once. You can start the timer in event 5 and 6, immediately after spawning the infected cell. No need for a separate event #7.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, your event #7 is wrong. It doesn't affect one infected cell, it affects all currently infected cells, restarting Sine for all of them, changing scale back and forth...

    If you want every infected cell to shrink over time, use Timer behavior, or Sine/LiteTween (with a long period time). But you need to do for one created instance, not for all instances at once. You can start the timer in event 5 and 6, immediately after spawning the infected cell. No need for a separate event #7.

    Thanks you! I was able to fix it through instance variables.

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