dop2000's Recent Forum Activity

  • Enemy-> On destroyed
    (press B to add a sub-event)
          System -> Compare two values -> random(10) is less than 1   :   Enemy -> Spawn PowerUp[/code:2wzdw65n]
  • It's a demo...

    It adds this date to a timestamps and shows how many days in a row the app was running - "0"

    Then it adds another date and the number of days changes to "1".

    You will need to add a real date to the timestamp, every time your app starts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do something like this:

    On enemy destroyed
       random(10)<1   :   Enemy spawn PowerUp[/code:2ro2445l]
    
    Every time an enemy is destroyed, there will be a 10% chance to drop a power up.
  • Many possible solutions.

    You can add a variable "TouchEnabled", set it to 1 when the game starts. Change your event to this:

    On button1 touched

    (and) TouchEnabled=1 -> Set TouchEnabled=0 ; do stuff

    Then set TouchEnabled to 1 again when you are ready to ask the next question.

    Also, I suggest you use "On tap object" for buttons.

  • I think by "height" he meant "distance" - after bouncing off solids the object should travel the same distance back.

  • If you are talking about sample capx from this page, just replace "Browser Log" with "Text set text"

  • You need this plugin:

  • So your PlayerBox sprite is 32x32px.

    Create a new sprite, size 50x100, name it PlayerFallingBox. Add Pin behavior. Make it invisible.

    On start of layout set its position to PlayerBox and pin it to PlayerBox.

    Change your event to something like this:

    PlayerFallingBox on collision with Enemy

    (and) PlayerBox is Falling

    (and) PlayerBox.y<Enemy.y -> Subtract 1 from Health

    So this bigger PlayerFallingBox sprite will only be used to detect collisions when the player is falling.

    In all other events continue to use PlayerBox.

  • maxwell88

    Capx example displays everything in Browser's console log. Press F12 in the browser, you'll see.

    As I understand, you need to do this:

    Every time your game starts, load Timestamp from local storage. Paste today's date, save timestamp to local storage (AsJSON).

    To get the number of days in a row your app was played, use DateInARow.ContinuousCount( ) expression.

  • Check out the Time Away plugin:

    You can use it to check how long the app was inactive and award a number of points depending on this time.

  • You can add all such sprites to a family, this will allow to optimize some of your code.

    But you'll still need to have separate event for creating each of the sprite types.

    Construct 3 allows creating objects by their name - Create "RedEnemy".

  • Kudos to you! I'm terrible with graphics and visual effects..

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 258 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