dop2000's Recent Forum Activity

  • As I said in my previous comment, you don't need to destroy text2 and you don't need to create text2!

    Remove entire event 16, and remove "create Text2" from event 18.

    When you create Text2, another pair of Bad+Text2 is created (as they are in the same container). That's why you have some sprites scrolling to the right.

    Also, why are you destroying and then immediately creating the spCannon? What's the point?

  • You need to understand the difference.

    Initial Frame setting is not for defining starting frame of an animation.

    It's used to select which frame will sprite be displaying after it's created.

    Starting frame of any animation is frame #0. If you need to start animation from another frame, you can do it with events.

  • You can change the initial animation name. Just erase "Default" and type what you need.

  • Function is a good idea, if you modify it like this, it should work:

  • The right way would be to count the number of shots as MadScientist suggested.

    But my example in the screenshot above also does what you want - fires 10 shots in 0.1s intervals and then destroys the gun.

  • Not sure I understand your question.. Do you mean something like this?

  • Add an instance variable "id" to your sprite. Set id=1 for the first instance, id=2 for second etc.

    On start of the layout:

    Pick Sprite with id=1, Start timer, Start animation

    On timer:

    Sprite destroy

    Pick Sprite with next id, start timer, start animation

  • Yeah, it doesn't work like that.

    You need to insert player's name into the text using events.

    Change you text in the XML to something like this:

    "Hello %player%, you have %gold% coins."

    Before displaying the text on the screen you need to search for %player% and %gold% tags and replace them:

    message= Replace(message, "%player%", Player.Name)

    message= Replace(message, "%gold%", str(Player.GoldAmount))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, I made my version of this game just a few days ago! But in my game the ball is bigger and moves slower, so I don't have this problem

    Try to make walls thicker, add the second line of defense.

    Remove "Ball on collision with wall -> bounce ..." event, instead add Solid behavior to the walls.

    Even after that when I left the game running for 10 minutes, the ball managed to escape.

    I would add another sprite in the top left and top right corners, just outside the layout. If the ball collides with that sprite, you will know that it has escaped, and you can return it into the layout with something like this:

    Ball Set position to (10,10)

    Ball Set Bullet angle of motion to 45

  • Unfortunately, this problem exists in all browsers, not just Firefox.

    For me the only solution was to use spritefonts.

  • Something like this?

    On button clicked
    System -> Compare two values -> Int(TextBox.Text) equals CorrectAnswer
    [/code:30aghlwo]
    
    .Text property of the TextBox stores string data, and I assume that the CorrectAnswer variable stores numbers.
    That's why to compare them you need to use Int(), which converts string into number. 
    
    Another way:
    [code:30aghlwo]On button clicked
    TextBox -> Compare text -> Str(CorrectAnswer)[/code:30aghlwo]
    
    Here is an opposite thing - you need to convert the number CorrectAnswer into string, you can do it with Str() function.
  • You are on the right track.

    Create a family with all 3 sprites. When any family member is created, save its UID.

    Then when "undo" pressed you can destroy this family member.

    The only problem is that it only gives you one undo step, but I'm sure you can modify this code if you need more steps.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 247 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
  • x4
    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