Danwood's Forum Posts

  • I got this problem, basically in my game you can drag stuff around, here's an example with LayoutScale set to 1.0 (red dot is the mouse cursor position):

    And now, when i zoom to LayoutScale to 1.1+ (in the snapshot its 1.5) the mouse cursor is not aligned with the object it's interacting with:

    Is there a way to fix the mouse position, keeping the ability to change layout scale?

  • Wow, very quick and very informative, thank you!

  • I got a sword with 2 image points: Grip and Origin

    Then i got my Arm with the "Hand" image point

    I want to move the Sword to the Arm, and it asks me the image point of the Arm i want to use, i set Hand.

    The problem is it doesn't allow me to choose the image point of the Sword, as it only uses the Origin. I want to use the Grip image point, not the Origin, and i want to keep the Origin where it is.

    Is there a way to do it?

  • I know it is a silly question, and i even know one answer:

    every tick > rotate 1 degree to X

    But is there a less painful (for my CPU) way to make the same thing, and still archiving a smooth rotation towards a specific object? The problem is i have tons of those objects and making them check every thick (or even every 0.1 sec etc) is too CPU intensive, but i dont want them to rotate 30 degree at a time every 1 or few seconds...

  • 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

  • Try Construct 3

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

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