Jump to content

Search the Community

Showing results for tags 'restrict'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi everyone, I'm trying to make a simple puzzle game where the player has to move around horizontally and place blocks to build a certain structure (kind of like 2D Minecraft, but this is not the point ). Something like this: (this is only a sketch, of course ) The problem is, I want the player to be able to place blocks only if they wouldn't overlap with each other - I made a separate invisible sprite to serve as a 'bounding box' where the block would be placed if it's not overlapping with the others (the body is highlighted), but I'm having real troubles making the game keep track of whether the bounding box is overlapping the blocks group. I tried several ways, for instance: But then I realised that the value of this.blocking just keeps switching with the speed of light. How do I make the dude place the blocks at the specified distance? I'm sorry if this is a dumb issue, but I really can't figure it out - I also couldn't find anything in the docs or examples about this.
×
×
  • Create New...