dop2000's Forum Posts

  • You can pin everything on this layer to some invisible sprite and then just move that sprite. Use families to decrease the number of events.

    There is also an addon called "Layer" by Rexrainbow that allows some layer transitions (fade, scale, rotate), but unfortunately you can't move the layer with it..

  • Set "Force own textture=Yes" on the layer.

    They move your rain sprite in front of the mask sprite and set "Source in" or "Source atop" blend mode on it.

    You can experiment with different blend modes, the important thing is "Force own textture=Yes" setting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, you can do this with While:

  • I made some changes:

    dropbox.com/s/f5r5tcmm04pna27/BounceBall2.capx

    Bullet angle is unreliable, so I added BallAngle instance variable and changing it with events.

    Bullet angle of motion is set to BallAngle on every tick. "Bounce off solids" is now disabled.

  • Add Touch object to the project and manually replace all Mouse events/expressions with corresponding Touch events and expressions.

    After that you can delete Mouse from the project, Touch will work with both touch screen and physical mouse.

  • I noticed that when uploading an image, file extension should be in lowercase. "Image.jpg" works, "Image.JPG" doesn't.

  • I don't know why, it's just the way it works :)

    Because the same angle can be expressed by different numbers, when dealing with angles you should try using specific conditions and expressions. For example, instead of lerp() use anglelerp(), instead of "Is between values" use "Is between angles" etc.

  • You didn't attach any image.

    If you need to connect two sprites "physically", use Pin behavior. Pin one sprite to another and they will move together and rotate together.

    If you meant "logical" connection, you should try adding them to the same container.

  • You can do this with Chipmunk physics, but I don't know if this addon has been ported for C3.

    With standard Physics behavior you can probably use an invisible sprite with several frames, each with a different collision polygon. Add physics behavior and change frames when necessary. Pin your main sprite to it.

  • -160 is the same as 200 degrees.

    angle() expression returns negative values for angles between 180 and 360.

  • Try "For each" loop.

    System: For each Buttons
     Mouse is over Buttons -> Buttons Set animation "On"
     Else -> Buttons Set animation "off"
    

    to insert images, upload an image, then use "img" tag:

    [img=5432]
  • Try this:

    Turret set angle to clamp(angle(Turret.x, Turret.y, Touch.x, Touch.y), -160, -20)

  • Why don't you use gravity? With gravity it will look much more natural.

    This can also be done with Bullet behavior, it also has gravity setting.

    You can slow down or stop the ball when it collides with the floor. For example:

    Ball on collision with Floor -> Ball set Bullet speed to (Ball.Bullet.Speed/2)

  • You can make all these objects global, then when player selects a group of objects, destroy all other objects and change layout. Remaining objects will be transferred to the new layout.

    Alternatively, you need to save the list of selected objects in an array/dictionary and then re-create them in the new layout from the saved data.

    Read about families and containers, they may make the job much easier.