dop2000's Recent Forum Activity

  • Are you compressing images using some external software, or this option?

  • That formula for RND is wrong. Values 2,3,4 will appear more often than 1 and 5. Sometimes no pedestrians will be spawned, or several pedestrians can be spawned at the same time.

    If you need to spawn 1 pedestrian every 1 second, instead of RND use "System Pick random instance" event.

    So remove "RND=1" condition, add a sub-event under event #7 and put "System Pick random Spawners" there.

    If this doesn't fix the issue, the problem may be with two other conditions - Spawners overlapping sidewalk, and Spawners is on-screen. You can try to debug it. For example, in event 6 set Spawners opacity to 50. In event 7 set their opacity to 100. You should be able to see which spanwers are picked by event 7 (overlapping sidewalk and on-screen), they will have 100% opacity.

  • Do you need to allow players to type in this textbox? Or is it only for displaying the text?

    If you only need to display text, I recommend using Text object instead with this addon:

    construct.net/en/forum/extending-construct-2/addons-29/behavior-scrolling-for-text-sp-47715

    • Post link icon

    Thanks, DiegoM, for this great new feature!

    Will it be possible to add "On keyframe reached" triggered event? I'm not entirely sure how it will work with different instances and properties, but this would definitely be a useful addition.

    Let's say I want to change animation frame of the sprite at the keyframe. Currently the only way to do this is to compare Timeline.Time or Progress on every tick, which is not very convenient.

    I guess this can be worked around with an instance variable, which you set to different values on each keyframe, but I can't test it - my C3 crashes all the time when I'm trying to add instance variables to the timeline...

  • Do you mean when several red sprites are overlapping each other? I'm afraid you will need to keep each pair of sprites (red+shadow) on a separate layer.

    .

    There may be an effect you can use instead, a gradient mask or something like that, see this post:

    construct.net/en/forum/extending-construct-2/effects-31/webgl-effects-list-51897

    .

    Spawning without overlapping is one of the most popular questions here. Try searching the forum and you should find lots of examples. Here is one:

    construct.net/en/forum/construct-2/how-do-i-18/ideas-for-randomly-spread-out-142100

  • You can do this with blend modes. Both sprites need to be on the same layer with "Force own texture" enabled.

    The "Ball" sprite should have a gradient from black or grey to transparent (not to white). Put the ball above the red sprite and set "Source atop" blend mode for it. See this demo:

    dropbox.com/s/w77ytyb6wxfnuj0/BlendMode_BallMask.capx

  • Repeat choose(3,4) times

    System create object, Layer:N, X: random(0, LayoutWidth), Y: ViewPortBottom(N)

    Where N is the name or number of the layer where you want the object to be spawned

  • Have you tried doing this without the iframe? When sprite button is clicked, do "Browser - Go to URL" or "Browser Open URL in new window". Put the same URL you have in that hyperlink.

    Another option you can try is sending a "fake" click to the hyperlink. Add an ID "myHyperlink" to the hyperlink. Move the iframe off-screen, so it's not visible. On sprite button clicked, add an action "Browser Execute javascript" with code "myHyperlink.click()"

  • Set "Set angle=No" in Bullet properties.

  • Your event #4 is triggered on every tick. You can't use "Trigger once" here because you are dealing with multiple instances of pedestrians.

    So you need to add another condition "Animation Dead is not playing", or change your event like this:

    Pedestrians HP=0
    ...Pedestrians set HP=-999
    ...Pedestrians set Animation to "Dead"
    ...Pedestrians set bullet speed to 0
    ...Pedestrians spawn BloodPool
    

    Alternatively, you can simply move all these actions to event #3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bison You can find MoveTo addon compatible with C3 runtime here:

    construct.net/en/forum/construct-3/plugin-sdk-10/construct-3-runtime-a-few-cons-137539

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 260 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies