OleDee's Forum Posts

  • 6 posts
  • I'm still a beginner, i really have problems putting that together.

    could you show me how that would look like on an event sheet?

  • I tried that now, but there is still no actual evolution over more generations.The function doesn't take the value of every individual fish, but it always takes the

    basic value which is 100.I'll give an example for the math on how it should be:

    Fish spawns on start of layout: speed=100(default speed)+random(20, -20), example: 120 speed.

    If this fish spawns another fish: speed=120(speed of mother)+random(20, -20), example: 140 speed.

    Then again if this fish spawns another fish: speed=140(speed of mother)+random(20, -20), example: 160 speed.

    Right now it is like that:

    Fish spawns on start of layout: speed=100(default speed)+random(20, -20), example: 120 speed.

    If this fish spawns another fish: speed=100(default speed)+random(20, -20), example: 120 speed.

    and that repeats forever. I hope this is somewhat understandable..

    thanks for your time and capacities <3

  • maybe i explained it a little weird

    what i want at the end is basically:

    on spawn of a fish the speed is supposted to be :Speed of Mother+random(-20, 20)

    what i got right now is :100+random(-20, 20)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yeah that works. (:

  • firstable thank you, i think i came closer to the solution,

    but i still have the problem that the spawned fish doesn't copy the speed of the "mother", but it spawns with the speedvalue 100+random(-20, 20). Instead of the 100 i need the speed of the"mother.

    this is the first time i used a function, did i do something wrong?

  • Hello Dear fellow game designers, i am creating an ecosystem, an aquarium of Fishes, that evolve.

    It starts off with a bunch of fishes with a bullet speed of 100, If a Fish finds something to eat, it spawns another fish, which is the same Sprite. So there is supposed to be a Mother-Kid relation. I want the new spawned fish (the kid) to have the same bullet speed as the mother, variating by a random value about -20/+20.

    My Problem is:

    When the mother spawns the kid,

    the kid is taking the default bullet speed, which is always 100, + the random value (-20/ 20) and is not taking the one specifically of his mother as base.

    i am clueless on how to solve that problem, Here's a link to my project, i'd be really happy for help!

    optimally someone just makes it work in the event sheet and uploads the file again in this threat kek.

    drive.google.com/file/d/1Gasu-eH2AVD4E4hzXa9OWGF6neDsPu_e/view

  • You do not have permission to view this post

  • 6 posts