lionz's Forum Posts

  • You can use a layout for all global events and include it in each layout's linked event sheet. On the layout's linked event sheet you could have specific events for that layout.

  • What did you try? You can set the enemy as a bullet that always sets angle of motion towards the player, or you can use pathfinding behaviour.

  • I don't know how else I can explain it, the array object called Array you have to set the X to a size that fits all your data

  • 1) no the initial size of the array object, you need to set its X to something greater than 5. you are probably setting values when no row exists

    2) you need to use on ajax 'on completed', then there is data to add to the array. edit: this didn't work? let's see the events with on completed.

  • 1) array needs to be the right size

    2) you probably deactivate the group before it has a change to grab the data since all those events are running in same tick

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There ya go : dropbox.com/s/g6vk2edgy81lmrw/spritecoordinatearray_edited.c3p

    edit : ok I see you want to spawn the sprites instead of flash, well use my logic and instead use create sprite action and also an action of set ID to the tokenat value displayed in the condition at line 9

  • My approach would be to have the next instance variable with all the instance IDs so it could be "1,2,3" then you could use the tokenat expression to grab individual numbers, and use a loop to run through each picked instance. If you can't work it out maybe I can add to the project file if I have time.

  • You could either pick all sprites again using system pick all and then use your pick condition (within the same sub event) or you could use a function and pass the values through as parameters to pick the correct sprite.

  • On the spawn event you can add a condition - system > trigger once. At the moment it runs all the time.

  • So the Construct developers say it's nothing to do with Construct and cannot help, and you want a user to help? I don't see how! Posting the events won't help much as it is nothing to do with Construct. Maybe it's a problem with your phone.

  • If the enemy object has platform behaviour then it is there 'Simulate control'

  • Well it's not a simple request, sounds more like an app than a mobile game. There is a Geolocation plugin, perhaps you can grab the user's location and then keep comparing to previous co-ordinates to calculate metres travelled.

  • Reverse the conditions so Gold > 500 is first

  • A condition under the Sprite object

  • On created - set animation frame to round(random(x,y)) where x and y are the upper and lower limits and round ensures it is a rounded number.