dop2000's Recent Forum Activity

  • divyach

    In C2 click New project, select Template: Infinite jumping.

    Add layer "Background" below "Game" layer.

    Add a sprite to the Background layer.

    Set "parallax=20,20" in "Background" layer properties.

    Set "Transparent=Yes" in "Game" layer properties.

    You will only need to add scrolling down when the player is falling.

  • bump...

  • You don't need hundreds of sprites, you only need one TileMap.

    It's not straightforward, but doable. Create different tiles for different situations -

    1. dug (or digged ) tile and no other dug tiles around

    2. dug tile and one dug tile next to it

    3. dug tile and two dug tile next to it - on right and below

    4. dug tile and two dug tile next to it - on left and right

    5. dug tile and three dug tile next to it

    6. dug tile and all tiles around also dug

    7. grass tile

    You can use these 7 tile types to form any kind of landscape.

    When player digs a tile, check the state of neighboring tiles and select the correct tile type. Rotate it if required.

    Then update the neighboring tiles the same way.

  • The or event picks 4 instances because all 4 instances meet the logic. Right?

    Yes, but the parent "compare instance variable" event picked only 1 instance. So the sub-event should not pick more than 1.

    Also, changing the order of conditions in Or-block should never affect the result! It's against the binary logic.

  • Did some more testing. This only happens with Or-blocks, and the order of conditions matters!

    "Sprite.a=1 or Sprite.c=1" picks 1 instance.

    "Sprite.c=1 or Sprite.a=1" picks 4 instances.

    So I'm 99% sure this is a bug.

  • newt, Sorry, I still don't understand.. This kind of ruins my whole system of belief in how C2 picking works. And it can potentially mean lots of hard to detect bugs in my games...

    Is there a tutorial or something that explains differences between "normal" and system picking?

    How can you explain this?

    System Pick Sprite with c=1    // System picking - only one instance is picked
       
        Sprite.c=1     // This is "normal" picking, right?
                       // picks just one instance
    
              Sprite.a=1   // If I put Or-block into a sub-sub-event under "normal" picking sub-event, 
              or           // it still incorrectly picks 4 instances!
              Sprite.b=1    
    [/code:e6fk0rs9]
    Here is the updated capx:
    [url=https://www.dropbox.com/s/jyc2ctj1hlqh3oo/Picking_Bug2.capx?dl=0]https://www.dropbox.com/s/jyc2ctj1hlqh3 ... .capx?dl=0[/url]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If the path is not a straight line, then yes, it would probably be easier to use physics.

    If you don't want to deal with the wheel rotation, friction, revolution joints etc., you can use an invisible sprite with physics behavior. Push it downhill and then on every tick set your cart to that sprite position and angle.

  • You can put a small invisible sprite inside the cart. When player is in collision with this sprite, start moving the cart.

    You can also disable player's controls while the cart is moving and pin player to it.

  • minigame This is strange. Could you share your capx?

  • newt What do you mean? I thought picking conventions are always the same, no matter which event was used to pick instances.

    And why "AND" block with the same conditions works fine (respects the set of instances picked by parent event), while "OR" block doesn't?

    Here is the code in a nutshell:

    // a=1 for all instances
    // b=1 for all instances
    // c=1 for one instance
    
    System Pick Sprite with c=1    // only one instance is picked
        
        Sprite.a=1
        Sprite.b=1    // Correctly picks just one instance
    
        Sprite.a=1
        or
        Sprite.b=1    // Incorrectly picks 4 instances
    [/code:18m5yq6f]
  • Use TileMap object, it would be perfect for the task. You can find a few tutorials here:

    https://www.scirra.com/tutorials/all

  • This is not a bug. You need to follow this tutorial to embed the font into your game:

    https://www.scirra.com/tutorials/237/ho ... -web-fonts

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 29 Nov, 2024

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
  • 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