dop2000's Recent Forum Activity

  • Does your spritefont (image) actually contain capital letters?

    It works for me:

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

  • I don't really understand what you mean. If you share your project or a screenshot of your events, I may be able to explain what's going on.

  • The pipes are moving too fast and disappear from the screen before they change Sine movement.

    But now I understand that you wanted to change movement at the moment the sprite is created, not 5 seconds after it was created.

    I'm guessing you want to create pipes with Horizontal movement for 5 seconds, then with Vertical movement for 5 seconds and so on?

    You can do this with a single variable, say verticalMovement=0

    Every 5 seconds
        verticalMovement=0  -> set verticalMovement=1
        Else -> set verticalMovement=0
    
    Every 1 second ->    Create object bottomPipe
        verticalMovement=1 -> bottomPipe Set Sine movement to Vertical
    [/code:2h6s54w7]
  • So "On key pressed" is the only condition and it's not inside some other event like "Every X seconds"?

    Then it should work.

    Do you use TextBox? When cursor is in the TextBox, some keyboard events may not work.

    If nothing helps, please share your capx.

  • It's hard to tell without seeing your code.

  • I still don't see any errors.

    Could you save your project as a single file (capx) and share it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, it's all correct. I did the same and it works for me.

    Maybe there is something else in your code that breaks it.

    Did you set "active on start=yes" for Sine?

  • When you spawn a family instance, family member will always be picked at random, you can't predict it.

    Why did you make them as separate objects anyway? If the only difference between bullets is their color, you can put them all in one sprite (as 3 frames or 3 animations). Then simply spawn this sprite and change its frame/animation.

  • You can do this with "overlapping at offset", but this will require some math.

    There is an easier way:

    Define an imagepoint on the platformer sprite, which is a few pixels below its bottom edge. (outside the image)

    Then you can use this event to check if platformer is on the tilting Floor or within several pixels from it:

    System-> Floor is overlapping a point (platfromer.ImagePointX(1), platfromer.ImagePointY(1))

  • Add Timer behavior to your object.

    On object created -> Object start timer "ChangeMovement" for 15 seconds (Regular)

    Object on Timer "ChangeMovement"

    ...Object: Sine compare movement is Horizontal -> Object: Sine set movement to Vertical

    ...Else -> Object: Sine set movement to Horizontal

  • Have you tried uppercase() expression?

    SpriteFont set Text to uppercase("abcd")

dop2000's avatar

dop2000

Member since 26 May, 2016

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