M0A0THIAS's Recent Forum Activity

  • LittleStain derp...thanks...that actually helped with a bug of the numbers not showing up on each brick. BUT still having the infinite loop issue

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • korbaach I appreciate the reply but as I looked over that I would have to restructure my code for it to pertain, thanks a lot though!

    nimos100 this solution seems to work..although, I have run into a problem where its spawning infinity text, and only on one block. I feel like I've nested the for-each improperly. To help with clarity I will post my current block of code:

    SPAWNX & SPAWNY are global vars ( the initial spot the instances start to spawn)

    System On start of layout
    System For "Y" from 0 - 1
      (sub event)System For "X" from 0 - 3: 
                                                System create object Sprite on layer 0 at ((SPAWNX + (loopindex("X"))*(Sprite.Width + 125)) , (SPAWNY - (loopindex("Y"))*(Sprite.Width + 125)))
                                                Sprite Set value to floor(random(1,10)
                                                Array Insert Sprite.Value at index  0 on X axis
    System For Each Sprite
                                               System Create Object Text on layer 0 at (Sprite(0).X , Sprite(0).Y)  //first location of first instance
                                               Text Set Text to Array.At(0) // first instances storage location
    [/code:xapwssyb]
    
    Sorry for the lengthy reply. Any help is appreciated.
  • Thank you both! I will give it a shot and see what works best!

  • Hey guys, i'm new to Construct 2 so any help would be appreciated.

    For my game I need to figure out how to generate text on top of my sprites which are essentially blocks. These sprites are generated instances of one original and I have 8, those of which get stored into an array for easier access. As of now, they all generate a random number value when created(1-9 respectively) and I need those numbers to dynamically show up on the blocks upon creation. I've downloaded a behavior plugin called "Text on Sprites", but I'm either not using it right or it's just not working for what I need. Wondering if anybody has some good suggestions as to how I should go about this.

    Thanks in advance!

M0A0THIAS's avatar

M0A0THIAS

Member since 14 May, 2015

None one is following M0A0THIAS yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies