Sun.Jan 29, 2023

article thumbnail

How to get width of a text label?

Cocos

In Creator 2.x, you can try Demo: NewProject_2411.zip (234.0 KB) In Creator 3.x, you can try label.string =.; label.updateRenderData(true) const size = label.node.getComponent(UITransform).

Demo 52
article thumbnail

Float Compression 1: Generic

The Astronauts

Introduction and index of this series is here. We have 94.5MB worth of data, and we want to make it smaller. About the easiest thing to do: use one of existing lossless data compression libraries, or as us old people call it, “zip it up” There are tons of compression libraries out there, I certainly will not test all of them (there’s lzbench and others for that).

Data 52
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

Attaching a constant rotation transform to mesh

Cocos

Hello there, I have made a weapon stick to a user’s hand, using the ‘sockets’ property on skeletalanimation component. I’m wondering is there a way to add a constant rotation transform to this newly created socket. Want to rotate this axe -90 degrees on Z axis so the player is weilding it correctly.

Mesh 52
article thumbnail

Game Wisdom 2022 Awards for Best Metroidvania

Game Wisdom

Game Wisdom 2022 Awards for Best Metroidvania Josh Bycer josh@game-wisdom.com The Metroidvania category continues to be an indie staple and this year saw some very interesting ones getting released and hopefully a good sign for 2023. Honorable Mention: Aerostrike A metroidvania built around shmup gameplay has been one of my … The post Game Wisdom 2022 Awards for Best Metroidvania appeared first on Game Wisdom.

Indy 52
Join the IGDA Community
article thumbnail

Cocos Creator 3.7.0 ugly shadows on mobile

Cocos

Hi all, I enabled shadows for my project, but I don’t know why it looks very different on mobile and desktop: Desktop: Mobile: looks like some objects applies own shadow incorrectly and shown with big sharp edges

Mobile 52
article thumbnail

Useful Tips To Get Better At Gaming

Game Wisdom

Useful Tips To Get Better At Gaming Josh Bycer josh@game-wisdom.com Gaming is a way of life. From friendly rounds to competitive eSports, it’s no news that video games provide platforms for players to have fun, network, and even earn some money in the process. According to research by eMarketer, over … The post Useful Tips To Get Better At Gaming appeared first on Game Wisdom.

Esports 52

More Trending

article thumbnail

Dread Templar

Indie DB

A full release for this demon-slaying retro shooter indie is now here

Indy 113
article thumbnail

Attaching a constant rotation transform to mesh

Cocos

You can try this solution by mounting an empty node on the weapon node hierarchy and then setting the rotation on this node.

Mesh 52
article thumbnail

How Much Does it Cost to Develop an iOS App? – A Complete Analysis

Artoon

Finding the cost of mobile app development, specifically for iOS app development […] The post How Much Does it Cost to Develop an iOS App? – A Complete Analysis appeared first on Artoon Solutions.

article thumbnail

Need help with Android error (java.lang.UnsatisfiedLinkError)

Cocos

Unfortunately, even after a clean and rebuild, it didn’t work. samsung a23 samsung a11q This is a phenomenon that only occurs on these two models, hmm… is there any other solution?

40
Join the IGDA Community
article thumbnail

Three Random Archives

Indie DB

This mini-game collection indie releases a new version

Indy 70
article thumbnail

Unknow type name attribute when trying the vertex shader test

Cocos

A.vsh is Vertex Shader,fsh is Fragment Shader, if you want to set something related to fragment then you should use.fsh, you can use varying to send variable between vsh and fsh. Which means you should have something like varying vec4 v_fragmentColor; varying vec2 v_texCoord; in the vsh accordingly.

Shaders 40
article thumbnail

Cocos Creator 3.7.0 Adding Spot Lights is a case of huge draw calls

Cocos

Hi, all, I am wondering why adding three spotlights increase draw calls from 60 to 400-450?

52
article thumbnail

Cocos Creator 3.7.0 ugly shadows on mobile

Cocos

Can you tell me what mobile device and system version you are using for the test?

Mobile 52
Join the IGDA Community
article thumbnail

Error: Unexpected export statement in CJS module. Cocos Creator 3.7.0

Cocos

HI all, I installed uuid package, uuid - npm , but I can’t import it, see this error: Error: Unexpected export statement in CJS module.

40
article thumbnail

Need help with Android error (java.lang.UnsatisfiedLinkError)

Cocos

You can check to see if all the ABI options are included when building Android

Build 40
article thumbnail

[Open Source] Rouglite Hack-n-Slash game

Cocos

Games 52
article thumbnail

[Open Source] Rouglite Hack-n-Slash game

Cocos

Bumped to Cocos Creator 3.7.0.

Games 40