dop2000's Recent Forum Activity

  • Actually, it's super easy to do with Orbit behavior, all you need is one event.

    On every tick : Sprite set Y to min(Self.Y, Ground.BBoxTop-Self.Height/2)

  • This may be considered a bug, you can try reporting it.

  • Is there a way to tell it not to override this layer on certain layouts?

    No there isn't. You can just use a different global layer.

    Does that mean I need to be making every layout with the same number of layers, even if I don't need them on every layout?

    This is not a good idea. If you want the global object to appear on a specific layer, the easiest solution is to create an event which will move it to that layer on start of any layout.

  • lionz That's what I suggested in their first post. OP apparently didn't like my answers.

  • If you decide to do this with a timer, you will need to stop it when the key is released early. If you don't stop the timer, the animation will still change after 2 seconds, even thought the key is no longer being held.

  • I have given you two solutions. You can try either of them. The "code" is the same as events. For example, "On A Key pressed" is an event of the Keyboard object.

    I also suggest you study a couple of tutorials for beginners.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are several ways you can do it.

    You can use Timer behavior. On key pressed - start a timer for 2 seconds. On key released - stop this timer. On timer event - play animation2.

    Another option is with a variable.

    On key A pressed : Set variable Charge to 0
    
    Is key A down : Add dt to Charge
    ... Compare variable Charge>=2 : Player play animation2
    
  • I believe when you switch layouts, global objects are transferred to a layer with the same layer number, not with the same name.

    I think in your case it may be better to make the layer "UI" global. And disable global attribute for UI objects.

  • You can disable "Default controls" checkbox in the behavior properties. And control the sprites with events. There are lots of examples in the official templates, for example:

    editor.construct.net

  • As I understand, Wolf sprite in the prototype project has the same instance variables and behaviors as the Enemies family in the main project? In this case you can create a new blank project, copy Wolf sprite to that project, remove all variables and behaviors from Wolf sprite, and then copy it to your main project. Add it to the Enemies family, and then you will be able to copy over all events from the prototype project.

    Also, check out this tutorial from Ashley:

    construct.net/en/tutorials/upgrade-object-family-319

  • Looks to me like a bug with sorting string values. If you can reproduce it in a small project, you should report it:

    github.com/Scirra/Construct-3-bugs/issues

  • The second method is correct, but you need to change the event to "On Key Pressed" (not "Is key down").

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-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
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies