Nebby's Recent Forum Activity

  • Me and my mother who's a teacher are making an "educational" game for her school.

    Currently i'm trying to make the objects, which in this case are fruits, spawn in random, determined places

    (Determined by the "Fruit Spawner Objects")

    While i think the logic behind the while loop and the spawnObject function are sound, for some reason i cannot comprehend, sometimes the fruit stacks, and not all fruitSpawners are destroyed, i've tried a number of things with no luck whatsoever, can anybody help me?

    Video of the problem (You can see that in the last few seconds the apple and the blueberry appear in the same spot, and one fruitSpawner instance is left.): i.gyazo.com/b56df6b8c65acade9c48f92820dc2389.mp4

  • "&" is a logical "AND" operator. The result of (1&2&3&4&5&6&7&8&9)=1, so it spawns one banana at image point 1.

    You need to define an instance variable "quantity" on the family and do this:

    Also, to optimize your project you can combine all spawners into one sprite (as separate animations or frames), and set them invisible on the layout.

    That worked! thank you very much, i apreciate it <3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, a bit of context, i'm a student learning videogame design, and i'm currently doing my exam, which is a clone of donkey kong country 1.

    i'm trying to create an easy way for me to create some of the clusters of bananas using image points (not the bunches that give you 10) so i can easily place them in the layout without worrying too much on precise placing. however, i can't seem to get them to work.

    i have a total of 4 spawners in a family called "BananaSpawners". and i tried this

    "BananaSpawners On Created: Banana Spawners Set Invisible - Banana Spawners Spawn Banana on Layer "Game" (image point 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9)

    There's a total of 4 Banana spawners.

    an arrow pointing down, wich should spawn 9 bananas, one on each image point

    a duo of bananas, which should spawn 1 on each image point

    a trio and a diagonal set of bananas, which should spawn 3, one on each image point

    https://drive.google.com/open?id=1nFvbhSo9bcpMK1Paj0HEtfLd6lu9CFfR this is the URL to the project, it uses Construct2, version 259 IIRC.

Nebby's avatar

Nebby

Member since 6 Jul, 2019

None one is following Nebby yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies