lionz's Forum Posts

  • In project properties, set the viewport size to something portrait such as 480 x 854 or 720 x 1280, and set 'Orientations' to Portrait so it is fixed vertical.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes it triggers once when the video has loaded. To trigger again you create a new advert and let it load.

  • Use a global variable as a condition. On your hit/damage logic say if variable=0. When the player gets hit set the variable to 1, wait 3 seconds then set the variable to 0. This locks out hitting while variable is 1.

  • The issue is with your on created event, which I assume is true on start of layout, that's why I mentioned to disable events to check where the problem is. On created also targets sprites created on the start of layout, even persist objects are created again, so it's setting everything to black I assume because that event is true when you go in. You could fix this by adding a condition, on blobdraw created and only if the string instance variable is "" then set the color.

  • Not sure what's going on there. Check if the variable is correct for the incorrect blobdraw objects, that means it hasn't picked up the setting of the colour. If variables are also wrong, start disabling events to try and determine where the problem is. Seems to me like you don't need the on start of layout set colour events if they are persist objects?

  • Replace 'is in touch' with 'on any touch start'

  • Why didn't you use one family called toy with family instance variables 'type' and 'colour'?

  • It's a loop that runs from 0 to number of keys stored. It won't put any obvious gap because it's running it all in one tick although you could try stopping and continuing the loop. If you want to wait you could try calling a function with a number sent through as a param, you add 1 to this number each time you run the function. Inside the function you 'get' the dictionary item 'param' so dictionary.get(""&param). When you've done what you need to do with the key then you add 1 to the variable you are sending through the function and call it again.

  • If it's temporary and you don't want to move the real starting position of the player each time you can create a spawn point object used for testing. Add some logic that if it's in the level, set position of the player to the spawn point object.

  • I may be wrong but I don't think 'key number' is data that exists. You store a key with a name and a value not an identifier. You could potentially store keys where the string is a number and run it through a loop : for from 0 to dictionary.keycount : log dictionary.get(""&loopindex) assuming keys are stored as "1", "2", "3" etc however that is not really running them in order it is checking that it exists and they happen to be in order.

  • Ordered by what?

  • Yes there is a 'for each key' condition on the Dictionary object that will run through every key in storage.

  • Let's see the events

  • What you are describing with the test file as broken is expected behaviour. What you described in the first paragraph is impossible so the event sheet must be linked to the layout in some way.