Sign in to follow this  
DrDan

Horse Race 2 - Grouping example

Recommended Posts

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.

horse-golden.png

horse-brown.png

v2.html

horse-black.png

horse-gray.png

horse-white.png

v2.js

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.