lionz's Forum Posts

  • You don't use multiple instances in each layout, it is global so you start with one in the first layout that's all you need. I meant set position with events, on start of layout 2 : object set position to relevant x,y.

  • A - woops sorry my comment can be read in different ways. What I meant was no background exists on the white space, you could add a background there suitable to your game to replace the white, that's all I meant as one kind of fix

    B - it would just be give an invisible object scroll to, every tick check if object Y is less than 20 for example then disable scroll to else enable scroll to. And then you do the same for Y greater than for the bottom of the screen. Also do x less than or greater than a value for left and right of the screen. So you are just disabling the scrolling of this object. As for the values to put in you can judge this by playing and then seeing when the white area would be shown by the scroll to of the invisible object, it's like stopping a camera from moving when hit certain boundary.

    If you cannot work it out after an attempt then let me know, maybe I can make a quick thing

  • Sorry object.count if using a continuous for each loop. If you use a system pick all objects then start to limit them with condition opacity=100 you can use object.pickedcount

  • 1 - the global var default value is 0.25, do you ever change it to be less than or equal to 0 as in the condition?

    2 - you could add a nice background? :) I guess a quick fix is not to have scrollto on the spaceship but instead have it on another object that cannot go beyond a certain x,y. This object would follow the spaceship but stop at co-ordinates that are the very edge of where the white space would appear.

  • 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 :)

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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