neverk's Forum Posts

  • You do not have permission to view this post

  • Maybe you could use clamp for that.

    clamp(x, lower, upper)

    Return lower if x is less than lower, upper if x is greater than upper, else return x.

  • add variables xpos and ypos to the object.

    When You create the object at random position. Set the Xpos and Ypos to object.x and object.y.

    Then every tick set position to:

    x = self.xpos + cos(tickcount)*radius

    y = self.ypos + sin(tickcount)*radius

  • Like this?

    Variables:

    xpos = 100

    ypos = 100

    radius = 100

    Every tick:

    set position:

    x = xpos + cos(tickcount)* radius

    y = ypos + sin(tickcount)* radius

  • Have you added mouse object to the project? If not, double click on layout and add mouse to the project.

  • Does this work with C3 runtime?

  • You do not have permission to view this post

  • a small progress gif. The spectators are designed by my 4 and 6 years old daughters :)

  • angelo Thank you for the compliment. For some reason, the gif was somehow messed up, so the speed is super fast. But I found it funny, so I let it be :) The camera zoom isn't really that intensive, it's actually quite subtle.

  • This is from my upcoming mobile racing game: CasuRally.

  • Won't run in C3 runtime:

    [quote:2rvhdhog]The runtime of this project cannot be changed to the Construct 3 runtime due to the following reasons:

    Plugin NW.js (NodeWebkit) is not supported in C3 runtime

    If I remove the nw.js, it's only black screen...

  • I got it working. The problem was that I was setting both x and y with different random numbers.

    I fix it by using a local variable instead of generating a random number in the equation...

  • Try Construct 3

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

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

    1. you probably already checked, but the offset has to be the left bottom of the ground object, not the middle

    Update - I just saw the video - this is not the problem, because the bush would be placed wring bit still move together with the ground

    2. For a different solution, you can add a few image points and select one at random to place the other object

    3. check if your bush is on the same layer as the ground. If it is on a different layer, the x-y coordinates could be different.

    1. Yes, the origin is at bottom-left.

    2. That's not probably a solution, because I would like to have a dynamic positioning, because the ground can be any width...

    3. I tried with a same and different layer, and the problem remained...

    oosyrag That "move at angle" might work, but still, I would like to figure out what's wrong with this one...

  • This happens if I set the pos every 0.2 secs

  • Do you move the ground sprites at all?

    Does it still occur if you use “time =0.1” instead of start of layout?

    Worst case, make a copy of your project and start removing everything else until it stops occurring. At the very least it will give a minimal example.

    To me it looks like things are being moved after you set the position.

    Well, the ground is very static and I'm not moving it at all, at least not on purpose...

    I have two "on start of layout" events. I have to check if that is the case. --> EDIT --> didn't help.

    R0J0hound Still occurs, even I set: time = 0.1