DrDan Posted April 17, 2018 Share Posted April 17, 2018 Simple example of spritesheets and grouping Having got one horse sprite running (see my previous post), now I want 5 horses with different colors running across the screen. Press the right cursor arrow to get them going. I had 5 spritesheets for 5 different color horses. I had to create 5 sets of animations to get these working. This was a simple copy and paste job, but I'm wondering if there is a more code efficient way to do this. If anyone has any suggestions I'd love to read them. But this got the job done. v2.html v2.js Quote Link to comment Share on other sites More sharing options...
hotfeet Posted April 18, 2018 Share Posted April 18, 2018 these are cool. have you thought about just having a grayscale version and using sprite.tint to save having to use more than a single sprite sheet and having to do the work of converting them to the colors you want. there is a demo here blackhawx 1 Quote Link to comment Share on other sites More sharing options...
DrDan Posted April 20, 2018 Author Share Posted April 20, 2018 Hi, good idea, will check that out. But that would only work in cases where the sheets are identical other than colour. I guess the main thing i'm looking at here is using different spritesheets within a group. It would be nice if you could specify the animations and the sprite sheet independent of each other. so you don't have to create 5 sets of animations... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.