Can someone explain/breakdown what you see when you get the tilemap.AsJSON?
Sample: {"c2tilemap":true,"width":4,"height":4,"data":"0,4x-1,1,3x-1,2,6x-1"}
I'm thinking of writing a converter for my project.
You're right, I just told the tilemap to set 100x100 of the same tiles and there was no noticeable performance usage. Thanks, I'll just have to change the way I'm doing it.
Hey Ashley,
Here's a capx for it https://www.dropbox.com/s/gc1zy56gaweucg9/marines%20test%20for%20cpu%20spike.capx?dl=0
I wasn't sure if it was something I was doing or not. Anyway, the way it is you'll see the CPU usage spike when the green circles are moving (In the task manager on my computer it maxes out a core) and if you click the button it'll make the tilemap invisible and you can see the CPU usage go down to practically nothing.
I hope it's either a simple fix or that I'm doing something stupid!
Thanks
Hi, I'm just starting to mess around with the tilemap, and I was wondering, right now my tilemap is about 80X60 tiles (@ 8px/tile) and if I move sprites on top of the tilemap the CPU usage spikes incredibly,.
This can be fixed by making the tilemap invisible and no other changes. Is this the normal performance?
I should say I have tried seamless mode off and it helps, but not much.
That's Okay, I found other people asking for this feature also.
https://www.scirra.com/forum/feature-request-layer-offset_t123235?&start=10
I'm in for it also! I could use it immediately and it could make for some very interesting features.
Yeah sorry, I want a camera to follow an object on layer A while another camera is scrolling layer B independently.
So instead of using the scroll to action which will scroll all layers (depending on their parallax setting) to the position, I need a scroll layer A to position(1) and scroll layer B to position(2)
Probably a long shot, but...
I want to scroll everything on layer A to an object on layer A and then everything on layer B to an object on Layer B (The two layer don't interact with each out, they are just happening at the same time.
Any ideas?
Yeah, that looks like it'll work, but is there anyway to take a snapshot of just an area? instead of the whole canvas?
Also, why should ALL layers be transparent?
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
I'm trying to build an avatar builder that would give the user a png and I have the avatar built with ~5 different sprites that make up different parts (head, body, facial hair, etc.)
How would I make an actual image out of this? preferably with no (transparent) background.
Update 5/1/2015: New builds with small bug fixes.
I just published it without minification and it works.
Member since 20 Jul, 2008