Danwood's Forum Posts

  • I believe it was fixed awhile ago, so that every X with choose or random will proc again the next time it triggers so it re-picks a new X. It used to be always the same X and it repeats itself as I recall I had a similar issue about 6 months ago.

    Looks like it isn't, i've tested now, and when i use for each before the x seconds, only 1 instance performs the action!

  • what's the difference between int and round? and what is supposed to do the line you proposed? give a real random number or else? Thanks

  • Yet another "for each" question, i guess it's pretty simple for a normal person, but i'm somewhat retarded

    I got 10 wolves in the map

    Condition:

    Every choose(5,10,15) seconds

    Wolf stamina > 10

    Action:

    Wolf do this blabla

    My question is this: if i dont use "for each" the game picks the SAME of 5/10/15 seconds from the "every X seconds" for ALL the wolves that respond to the criteria (> 10 stamina), right? But if i put "For each wolf" before it, will it actually pick randomly one of the 3 seconds number for every wolf every time?

  • i've come up with the variable solution as well, for now, it's the only way to prevent game breaking issues

  • I got this hunge issue: i've used the wait action to make the AI perform an action delayed, but when ever i save WHILE the wait is issued, when i load, it doesn't complete the actions after the "wait"

    Is there a way to fix this?

  • Basically this is my same questions

    It recived no answer, i'm going loco as well now

  • I used this capx to have an idea c:\Program Files\Construct 2\examples\Taking screenshots.capx

    But where does it download the snapshow? i didnt find it anywhere, im using note webkit as a preview , does it matter?

    PS: another question: if i would like the snapshot to picture the whole layout instead of the screen, how could i do?

  • I got another question about performance: should i add round( to the actual number (ex, when humidity is calculated) or only to the counter that displays the number in the UI? will any of them affect performance is some way?

  • Thanks, it was really easy, shame on me!

  • So i got this variable "Humidity" (im developing a sim game like sim earth..), the problem is, it is a huge number all the time after the ",", like: 45,0193458439672946

    I want to let the player track it, but i don't want him to se the ,0193458439672946. How can i do that?

  • (i deleted this in the general board and reposted it here)

    My game suffers from random stutter (very occasional but long stutters) when exported in node-kit, the fun fact is that this doesn't happen when previewing it in node-kit, only when exported. I tried to uncheck mignify scripts and compression, but the issue is still there.

    I'm trying to isolate the problem, but it looks like it is caused by the rain code i've stolen from the preset "Ghost Shooter rain version", but im not sure, it's extremely pesky.. But i still can't manage to understand why this happens only when exporting it! Before i find the problem, scrap the save and upload it, someone has any idea?

  • Thanks, just the answer i was looking for, i was already planning to apply it to the layer. Good to know.

  • For example, i got 100 objects on the map and i want to apply those the sharp or contrast effect. Will this have an impact on the game performance? or the game will somewhat pre-render the effect and use the modified sprite in the game to avoid losing performance?

  • i've discovered the problem is just when zooming more than 1.0 (1.1, 1.2 etc)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ok i've changed method: i've used the parallax for the interested layout, but in any case, when zooming a lot, you cannot scroll to the far edges of the map. Basically i've set the parallax of it to 0.75 and all other layers are 1.0, something is really strange here o.O