Sun.Nov 10, 2024

article thumbnail

Display text character by character

Cocos

1.You can set the node UITransform component anchor to (0, 0.5), then set RichText component horizontal Align to Left. then it will show the result like the video below: 2.There are too many 0 in color value. You can use tag to break a word into subwords. 3.

52
article thumbnail

Horror eXperiment - Game Release

Indie DB

Stand alone Indie horror fps based on a Half Life mod with the same name.

Horror 79
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 load resources as read-only

Cocos

Hello friends I’m making a 2D game this time and I’m having a problem with memory management. We’re using a few 4096-digit textures and they’re taking up too much memory I’m not sure exactly when I load a resource, but it seems to take up about 120 MB Based on this, it seems like the current resources.load() is loaded into the system memory as well Is there a way to load this resource as read-only?

Texture 40
article thumbnail

How to load resources as read-only

Cocos

@Tom_k The current task we are facing is to optimize RAM usage. Is it normal for resources.load to take up 128MB for a 4096 texture? I saw in other engines that if you don’t modify the image, you can load it as read-only, and in this case, you can load the same image with 64MB. Does cocos not have this function? Is there any way to minimize RAM usage without compressing it in another way?

Texture 40
article thumbnail

How to load resources as read-only

Cocos

1.If the textures size exceed 2048 2048, some devices will limit it and will cause the errors. It is better to use the images or textures which will not exceed 2048 2048. 2.resources.load will load the reources into the system memory.

Texture 40
article thumbnail

How to load resources as read-only

Cocos

Hello friends I’m making a 2D game this time and I’m having a problem with memory management. We’re using a few 4096-digit textures and they’re taking up too much memory I’m not sure exactly when I load a resource, but it seems to take up about 120 MB Based on this, it seems like the current resources.load() is loaded into the system memory as well Is there a way to load this resource as read-only?

Texture 40
article thumbnail

How to use the memory profiler

Cocos

Hi guys I saw in other engines that there is a profiler that can easily see how much memory “specific assets” are taking up For example, it is a tool that can easily see how much memory is taken up by the name of the game’s atlas or images. Maybe Cocos also supports this feature, how can I use it? Currently, our game has a memory issue, so I want to solve it somehow.

Asset 40
article thumbnail

Override the name of the built file?

Cocos

Currently, I have successfully deployed my game to the web, but am having problems with data cache browser. Can I override the name of the built file?

Data 40