John Locke's Forum Posts

  • 6 posts
  • ah i see how that works now

    i have it working with 2 items like this

    For each X element : Set text to Array.At(0,0)&Array.At(0,1)&newline&Array.At(1,0)&Array.At(1,1)

    Is there a way i can set this on a loop or something so it will only show whats there, as right now this way it shows [ 00 ] for the item(s) that are yet to be added

    Thanks

  • Hey man, thanks for the quick reply

    This works for the first item i add to the array but does not add the 2nd line in when i add another X to the array

  • I am trying to set text to array data i have looked at other similar posts but none of the information in them helped me with my problem,

    I am adding data to an array, X is being the name if the item and Y is being the quantity of the item.

    I want it to display as

    First item: First item amount

    Second Item: Second Item Amount

    For each xy element : Set text to Array.Curvalue just gives me the the amount of the first item and not the rest

    Any help would be greatly appreciated, Thanks

  • That worked a treat, had tried overlap at offset the other night but didn't work, was very late when i tried so who knows what numbers i put with it haha

    Thanks for your time, much appreciated.

  • Hey man thanks for the reply,

    This did not work either seems to just move the one closest to the edge and the others stay still until the first one has reached the end.

    I tried what you said multiple ways and with/without 'or'

    I also tried [pick nearest to (self.x+self.width/2) which also didn't work Heres a capx if its any help dropbox.com/s/nojwo9y9fx2jrd4/conveyor2.capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to make items move along a conveyor belt and stop and queue up behind each other when they have no where to go,

    It mostly works with

    item is over lapping belt right
    item is overlapping item(Inverted)
    
    set x to self.x+1[/code:27ssxl4x]
    
    This works fine until they need to move again and as they are overlapping the will not move.
    
    i have tried using distance(item.x,item.y,item.x,item.y) < 10 then move but i think i need some sort of picking instance here as it compares itself to itself i assume.
    
    any offer on an efficient way to do this, i have browsed the forums and tried other ways such as line of sight but still no luck
  • 6 posts