Sprite based counter

For questions about using Classic.

Post » Wed Feb 23, 2011 7:36 pm

Sorry for the fairly noobish question here, but whats the best way to make a counter with sprites rather than a font?

I seem to recall MMF having a counter object that you could load your sprites into. anything like that in construct?

Thanks heaps
B
10
S
4
G
5
Posts: 136
Reputation: 2,977

Post » Wed Feb 23, 2011 7:50 pm

You could do it manually fairly easily, it just wouldn't be as convenient. As far as I know, though, there isn't anything like that. It doesn't mean there 100% isn't, since there's a lotta stuff I don't know about. :P

EDIT: I just stumbled across something called an "Image List" while looking for something that might suit your needs. It SOUNDS like it could be what you want, but I have no idea how to use it.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Wed Feb 23, 2011 9:01 pm

You might want to check out the SpriteFont Plugin
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Wed Feb 23, 2011 10:01 pm

[quote="Squeemish":34oolndq]orry for the fairly noobish question here, but whats the best way to make a counter with sprites rather than a font?[/quote:34oolndq]

It's pretty easy to do with events. You just have to add to a sprite the numbers from 0 - 9 as frames and then use a loop to spawn instances of the sprite accordingly. Some knowledge about the system expressions will help. Here's an example:

[url:34oolndq]http://dl.dropbox.com/u/2306601/spritenumbers.cap[/url:34oolndq]
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Feb 23, 2011 10:21 pm

Awesome! All of these replies are helpful, thanks!

I think I'll give spritefont a go first, looks like it might be handy for a number of things.

Thanks again everyone!
B
10
S
4
G
5
Posts: 136
Reputation: 2,977


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest