Make a infinte runner platform array

0 favourites
  • 4 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • I'm trying to make a infinite runner where the game picks one of my platforms then places just beyond the current platform. I feel 'pick one' paired with families should help but I only have the free edition. I was wondering if an array should be able to solve this.

  • Not sure if you can insert object types into an array in C2.

    A work around you be to set a random number and pick a specific object to create depending on the result.

    Something like

    r > Set value to int(random(3))

    r = 0 > create object1

    r = 1 > create object2

    r = 2 > create object3

  • Not sure if you can insert object types into an array in C2.

    A work around you be to set a random number and pick a specific object to create depending on the result.

    Something like

    r > Set value to int(random(3))

    r = 0 > create object1

    r = 1 > create object2

    r = 2 > create object3

    ^^^^

    Thanks dude. This was genius. I was even able to assign the types of enemy's that make sense for each platform using the same logic.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Put your backgrounds in one sprite. Every background is a different AnimationFrame. Then create Background and set Animationframe random.

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