Jump to content

Search the Community

Showing results for tags 'How to have non bitmap Sprite'.

  • 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. I'm trying to give some Graphics primitives collision properties, but can't find a way to do it. Can I add Vector graphics to a Sprite like I could in Flash? Or is it not even necessary? The way I'm trying is to add some graphics to a group and set it as a collidable but that doesn't seem to work: var graphics = game.add.graphics(0,0); acesGroup = game.add.group(); graphics.beginFill(0xff0000, 1); graphics.lineStyle(2,0xffd900, 1); graphics.drawRect(100, 100, 50, 70); graphics.endFill(); acesGroup.add(graphics); game.physics.collide(acesGroup, cardGroup, collisionHandler, null, this);
×
×
  • Create New...