-
Posts
3 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Store
Gallery
Downloads
Posts posted by Gillmog
-
-
spriter_GetObjectInfoName(...) return name of box, point and bone objects. spriter_GetObjectInfoType(...) return enum such as UNKNOWN = 0, IMAGE = 1, BOX = 2, POINT = 3, BONE = 4. For example:
var count = spriter_GetObjectInfoCount(modelIndex, instanceIndex); for (i = 0; i < count; i++) { var type = spriter_GetObjectInfoType(modelIndex, instanceIndex, i); var name = spriter_GetObjectInfoFileName(modelIndex, instanceIndex, i); if (type != 1) { name = spriter_GetObjectInfoName (modelIndex, instanceIndex, i); } }
I think for the color you need to use ds_map.
var count = spriter_GetObjectInfoCount(modelIndex, instanceIndex); for (i = 0; i < count; i++) { var type = spriter_GetObjectInfoType(modelIndex, instanceIndex, i); var name = spriter_GetObjectInfoFileName(modelIndex, instanceIndex, i); if (type != 1) { name = spriter_GetObjectInfoName(modelIndex, instanceIndex, i); } blend = image_blend; if (ds_map_exists(color_map, name)) { blend = ds_map_find_value(color_map, name); } }
-
15 hours ago, saga55555 said:
I testing the tutorial and everything work fine.
But I noticed one problem. The animation caused memory leak!
The memory slowly increase. I try to put 20+ moss golems in and memory increase faster
Is memory increase because of bone moving?
Memory leak is fixed. Extension moved here https://github.com/Gillmog/spriterGM/blob/master/extension/spriterGM.gmez
v. 1.1.0 update Spriter 2D: Game Maker Studio extension
in Spriter Implementations
Posted
You need to add box to your spriter project than check collision.
Another way:
or: