oosyrag's Forum Posts

  • Define 'group objects'?

  • You want to update the variable at the end of the tick, put that action after the ones to check and set mirrored.

  • Keep track of the players x position in an instance variable at the end of every tick. Compare the current x position, if less than last x, set mirrored. If greater than, set not mirrored.

  • You can pretty much control every property of the text input object with CSS.

    Here are some advanced examples. blog.avada.io/css/input-text

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bug reports for specific platforms are very useful, as long as they are reproducible. There's a reason why specifying what platform is affected is mandatory for a proper bug report.

  • If it's reproducible in a minimal project, yes you should file a bug report.

  • Might run into trouble with the 5MB localstorage limit. Although I'm not actually sure if that's a thing that applies to Construct? I feel like more people would have run into problems by now with even just normally saving a game with just 5MB.

    I'm sure there are ways to access device storage but I am not familiar with them. Would probably need JavaScript.

  • dropbox.com/scl/fi/p3mrqiykgco5zyb4006va/particlemovementexample.c3p

    Basically you need to make your individual particles move left at the same rate as everything else.

  • Aha. There is a completely different problem here.

    So in flappy bird, rather than the player moving, the stage actually moves around your character. Instead of the player moving right, what is really happening is that everything else is moving left. After your particles get created, they stay in the same location and don't move left with the rest of the objects when they move.

    I don't think there is a way to control the particles made by the particle object to fix this. However, what you can do is create your own particles with sprite objects that have the fade and bullet behavior. Every X seconds, create the sprite object at origin x, y, set bullet angle of motion to random(a-n,a+n) where a is the target angle and n is the variance, set fade time and duration, bullet speed, ect. Then you put these sprite object "particles" in the same family as the rest of the level obstacle objects, and they will move along with the rest of the stage.

  • You say there is nothing else, but there probably is.

    You can confirm by making a minimal project with just that object and using the moveto behavior on start of layout.

    Are you sure the player sprite isn't just so far out of the viewport that it takes 30 seconds to reach the visible area?

  • So you're picking the tab close object, but there are no cards picked in the condition, so destroying a card will destroy all of them. You can add the 'mouse -cursor is over object' condition to pick the correct card.

    Otherwise, you'll have to associate the tab close object with the card it belongs to somehow. A container could be good for this. Then they will always created, picked, and destroyed together as a pair.

  • Try using the tween behavior.

    For physics, you can apply a force to an image point which is off center to cause rotation.

    For it to stay in place, you might need a second image point exactly opposite from the origin to apply an equal and opposite force too. You can also create a revolute joint on an immovable helper object to pin it in place.

    Edit: reminder not to mix physics with other movement to avoid issues.

  • You would need to "pick" the correct instance with a condition.

    Normally this should already be done with the object on clicked condition, so that any actions in that event such as destroy are applied only to the instance that was clicked.