lionz's Recent Forum Activity

  • how is it realistic to set an object to two separate positions at the same time, that doesn't make any sense?

  • If the player must be global then you need to set its position to somewhere reasonable on start of layout, but don't apply the same event sheet to every layout, they will need separate event sheets or another possible option is logic in one event sheet that filters out the layout such as if layoutname=this.

  • What are you trying to do? Because the object is global and in a fixed position it is always outside of the layout.

  • Cool, so it does kind of matter where the Red is then :P You can combine some kind of logic. choose(0,1,2) would give you a random selection to give to Red. if Red is 1 then it appears in the middle for example. You can combine that with a function or loop that you run with a counter that repeats 3 times. So a global variable set to choose(1,2,3) with a separate counter from 1 to 3, if counter = gv, then add Red, else pick a random colour from the array.

    Maybe look something like :

    set gv to choose(0,1,2)

    for (loop) 0 to 2,

    if loopindex = gv add "Red"

    else, run the search through array for a random colour

    output would be 3 colours, none the same, with red included at a chosen position (the global variable)

  • What do you mean by 'i placed the hole in the engine and it works but in the game it doesn't work'? Anyway the problem is likely that you need to regenerate the obstacle map after updating the obstacle, you can do this with the pathfinding action.

  • Great game! Well done :D

    thanks! glad you are liking it :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great :)

  • If it doesn't matter where Red is then you can start with Red and pick 2 other colours right? The problem here is not picking the same one twice which I usually resolve with an array. You can push all colours into an array and select one at random, then delete the row so it's not picked again. Then select another one at random.

  • You can put it on a global layer which is probably the best idea for a HUD, or you can make the bar a global object in the properties.

  • For each object where opacity=100, set variable to object.pickedcount

  • Hello!

    Our first game is now live on google play, please download and have a play if you like the look of it :)

    play.google.com/store/apps/details

  • No, It's not. I debugged that and you can see on the browser log that all tiles are created BEFORE starting to create enemies.

    The logging occurs yes but they're not created yet so I gave you a fix to ensure they are created before trying to reference them.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies