Remove Code Remove Collision Remove Debug Remove Sprite
article thumbnail

Handle the collision of sprites

Cocos

best way to debug this kind of bugs is to activate physic debugging, add this to your code. onLoad() { PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb | EPhysics2DDrawFlags.Pair | EPhysics2DDrawFlags.CenterOfMass | EPhysics2DDrawFlags.Joint | EPhysics2DDrawFlags.Shape; }

article thumbnail

Developer Shares Building Fabrics, Ropes, And Soft Bodies

Cocos

or better : with 3D scenes Origins Two days ago, I saw a fun effect: The article was: Dazzling HTML5 Front End Design Source Code Analysis Notes - Remnant Clothes Effect Example: Tearable Grid It is an effect that I’ve seen before and recently brushed up on. So I researched the code and prepared to port it to Cocos.

Build 98
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

How to Use Kaboom.js to Make Video Games

Game Designing

is one of the best Javascript platforms for beginners, allowing you to create fun and simple video games without requiring extensive coding knowledge. You can use the library to easily create scenes, add layers, build sprites, handle actions and collisions, add key events, and so much more. This article will discuss Kaboom.js

Sprite 52
article thumbnail

Getting started with HaxeFlixel in 2021

Radiator Blog

The engine should be able to render and simulate 200+ lightweight game objects -- frame-animated sprites with simple collision, no fancy physics or shaders. I also liked how Haxe has decent autocompletion support in VS Code, which reduces (but doesn't quite eliminate) all the documentation hunting. and no WASM.)

Sprite 52
article thumbnail

Maintenance release: Godot 3.2.2

Mircosoft Game Dev

This drastically reduces drawcall-related bottlenecks and can give massive gains in specific scenarios (drawing lots of sprites, big TileMaps, text rendering). Top: 10,000 Sprites with a randomized modulate and position. Bottom: 8 layers of a screen full of "A"s with two Sprites intermixed. Can you spot the difference?

Debug 52
article thumbnail

D20 RPG – Positional Awareness

The Liquid Fire

As a side benefit, you can look at the script in the inspector and see the Entity’s id which may be useful for a variety of debugging purposes. Because of the grid-based nature of my game, I position my sprites at whole number coordinate positions like "(2, 3)". I added the "results" array field for that purpose.