dop2000's Forum Posts

  • Every second?? Did you mean every tick?

    You can add Fade behavior to that ski trail sprite, to make it slowly fade away and get destroyed after a few seconds.

    Also instead of Pin you can add Bullet behavior with the same speed and direction as your background moves.

  • Turret with predictive aim should work much better than path finding.

    If your bullets are small and moving fast, they can pass through each other "in between frames", faster than the system can detect collision.

    You can try making their collision polygons bigger.

  • Yes, you can use touchscreen when previewing your game on PC.

    But I highly recommend testing on the actual phone as well.

  • matriax

    Minimum, maximum and step are easily done with instance variables and a couple of events.

    SliderBar is a Form Control object, and form control objects in C2 have lots of issues - they are rendered above all layers, have problems with scaling, scrolling, parallax etc. I really don't like using them in games.

  • Yep, everything looks perfect.

  • You can change opacity or set instance variables immediately after the "Create" action.

    Instead of "Repeat" use "For" loop and loopindex() expression:

    For "y"=1 to 6

    ...For "x"=1 to 6

    ........create object at (loopindex("x")*40), Y+(loopindex("y")*40)

    ........Object set opacity to 0

    Loopindex (without parameters) works with "Repeat" loops too, but if you have two nested Repeat loops, you can't reference both of them.

  • You can make your own slider with 2 sprites (or 9patches), it's easy. Here is an example from another post:

  • Try this:

    https://www.dropbox.com/s/nfcn8bfqj898u ... .capx?dl=0

    Note, that this method creates ~60 sprite instances every second, so don't make the sprite image too big and don't allow players to draw for too long without destroying old sprites.

  • I have a related question.

    In my game there is a level selection screen, where players can choose level number, then click Start button.

    I want to show interstitial ads before the level starts.

    How long does it take to "Preload interstitial"?

    Should I do this after player hits Start button, will there be a long delay?

    Or should I do this in advance, on start of the level selection layout? How long can the preloaded ad wait to be shown? Will it expire if after 1-2 minutes player still hasn't decided which level to play?

  • You can add Platform behavior to your character, Platform can walk on uneven surface.

    But if you try to make collision polygon on your ground to copy all those little bumps and drops, the collision polygon will be too complex and could affect performance.

    So one way to do this is to build the surface with simple invisible sprites, roughly replicating the terrain. Your character will actually be walking on these sprites, but it will look like it's walking on the ground.

    Another option is to use an invisible tilemap, but it's quite advanced. See this post:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://www.scirra.com/manual/167/timer

    System: On start of layout -> ScarySprite Start Timer "Suprise" for random(10,30) seconds
    
    ScarySprite: On Timer "Surprise" -> ScarySprite set Visible
                                     System: Wait 2 seconds
                                     ScarySprite set Invisible
    
    [/code:1kbxa9rr]
  • You need to change animations on Platform events, not on Keyboard events.

    Try something like this (screenshot from someone else's game):

  • You can make this image invisible, add Timer behavior. On start of the layout set Timer to random(10,30) for example.

    On Timer event set image visible, wait 2 seconds, set invisible or destroy.

  • What happens if you press Left or Right in mid-jump?

    You need to add another condition to those events - "Platform is on floor"

  • When you use "System-> Create", this creates an instance of your object, which inherits all behaviors, instance variables, effects etc. of the object. So if your block sprite has Physics behavior, all instances of this block will also have this behavior.

    When a new instance is created, all its properties are copied from the very first instance of this object which you placed on the layout in the editor. So if your first block instance has "Physics Initial State=Disabled", then all instances created in runtime will also have Physics behavior disabled, and you'll need to enable it with events.