dop2000's Recent Forum Activity

  • I think your second event is executed after the first one, and it sets the value back to 0.

    You should move your second condition to a sub-event:

    If Q pressed 
           Value = 0   -> Set Value to 1
           Else        -> Set Value to 0
    [/code:wnkayh43]
    
    Also, there is an easier way to toggle boolean variable, in just one line:
    If Q pressed -> Set Value to (Value=0)
  • You can use Angle(0,0, Touch.Gamma, Touch.Beta) to determine the angle of movement

    and Distance(0,0, Touch.Gamma, Touch.Beta) to determine speed factor.

    How do you use these values is up to you. I tried them with Bullet behavior and it works like a charm.

  • It's hard to understand your problem..

    Can you share your capx file?

    Also your code looks really inefficient and cluttered.

    If you have lots of dialogs in your game, I suggest you look at these tutorials (they all include example capx):

    zelda-dialogue-system-capx-and-demo-included_t182559

    https://www.scirra.com/tutorials/807/ho ... -game-talk

    https://www.scirra.com/tutorials/833/a- ... e-anywhere

  • Thanks, oosyrag!

    I tried native sizes and I tried setting "Collision Mask=Bounding box" for the floor and boxes, unfortunately it didn't help.

    As for the drag&drop, I used it just for this demo, in a real game I have a different control system.

    I am trying to do something with events - constantly checking if the box stays in the same place for longer than 0.1s, then changing its elasticity to 0, or even set it as Immovable, but it doesn't work very well. I really hope there is an easier solution.

  • It depends on how realistic you want this to be.

    You can try Bullet behavior:

    On each collision with the water increase bullet gravity.

    After 2-3 collisions disable Bullet.

  • Yeah, this will work too, thanks.

  • If you have old version of Construct 2, you can do this:

    Unzip CAPX file into a folder.

    Then open .caproj file in Notepad and edit this line:

        <saved-with-version>24600</saved-with-version>
    
    change to your version, for example :
        <saved-with-version>24400</saved-with-version>
    [/code:y97j1txw]
  • Sorry if this a silly question, I'm new to physics.

    I need to be able to put two square physics boxes on top of each other, but they keep shaking and sliding.

    Debug mode shows that even when one box is lying on the floor, it never goes into Sleeping mode, its velocity is constantly changing a little.

    This happens when either the box or the floor has Elasticity>0.

    But I want boxes to bounce when dropped, so I need elasticity.

    Is there any way to fix this?

    CAPX

  • You only need the .capx

    Just open it in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not complicated, here:

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

  • Nice, thank you!

  • This may be easier to understand:

    myText="Hello, %John%! How are you?"     <-  use % to mark start and end of yellow text.
    
    letter=""
    
    textYellow=0    <-  textYellow=0 means black text, textYellow=1 means yellow text
    
    For i=0 to len(myText)-1
      Wait 0.5*loopindex seconds
      letter=mid(myText, loopindex, 1)
      If letter="%"     
                If textYellow=0  Set textYellow=1    <- next letters will be yellow
                Else Set textYellow=0                   <- next letters will be black
      Else
           If textYellow=0  bbt_dialogue_texte Append letter
           If textYellow=1  bbt_dialogue_texte Append ""&letter&"[/color]"[/code:16o5kby7]
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