scalable sprites ( with rotation)

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

scalable sprites ( with rotation)

Postby feral » Mon Jun 09, 2008 4:18 am

the sprites in this demo are scaled with GE's own built in vector graphics engine ..... yes it does have one :lol:

scaler.jpg
screen grab from within GE editor

scalable.zip
ged and data files
(342.44 KiB) Downloaded 351 times


There is one type of graphic that is perfectly scalable, and can be easily rotated. And that is a vector graphic.. this demo takes advantage of that fact by using GEs very own built-in vector scaling engine :shock: .

There are limitations on this method, due to the type of "actor" being used - but I have a solution for that as well..which can convert this actor type to another ( it can be done now..I just need someone like SGT Sparky to help out and I will tell you ALL what I need shortly, and someone else may volunteer.) , but in the mean time.. yeah I know we can't use this exact method/actor type for some types things 8) but there are easy workarounds.

I am hoping also that if I can iron out some bugs, Makslane may be able to give us access to the dialog boxes required to do this in a more scripted fashion. rather then manually as it is...again any volunteers to help sort out bugs ?

I am also hoping that the GE vector graphics engine has built in rotation, which has simply not yet been implemented..not probable... but a small maybe.

note: there are a few "issues" with either GE, (or this method,) .. as some "scales" don't seem to work well.. - they should... so I am trying to sort that out.

KEYS
use the up down keys to scale up and down ( only 6 scales ) -
if you hold down the keys it scales quickly from 0-6 and back, or you can tap the keys for smaller jumps..

feral

PS: for a really cool trick hold down and/or tap the number 3 key (top of keyboard not numpad) ...for some even more fantastical !! amazing!! feralX3D fun :lol:

PPS: I want that cookie NOW :twisted:
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: scalable sprites ( with rotation)

Postby catacomber » Mon Jun 09, 2008 4:25 am

Downloaded. Thank you, feral. Do not have any Cookies, just a thank you. : )
User avatar
catacomber
 
Posts: 195
Joined: Fri Sep 28, 2007 5:36 pm
Score: 10 Give a positive score

Re: scalable sprites ( with rotation)

Postby feral » Mon Jun 09, 2008 4:30 am

BTW - SGT Sparky was doing a demo on this for me, but i hadn't heard from him in a long time, so i thought i would give it a go..so i hope i didn't spoil anything he was working on for it..

and a second BTW - the code in here is awful..don't try to follow it.. I can't stand strings in 'C'.. yuk.. and all the code is basically just patched together to make the demo work..

cheers
feral
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: scalable sprites ( with rotation)

Postby pyrometal » Mon Jun 09, 2008 5:06 am

lol, this method is pretty clever I have to admit! The main problem I can see though, is that text actors do not generate collision events, so that may be bothersome to some people out there. What tool did you use to create this animation font anyway?? Good work once more feral!
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: scalable sprites ( with rotation)

Postby NUTINC » Mon Jun 09, 2008 5:22 am

Here is your cookie!




With nuts! (it is invisible)
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Re: scalable sprites ( with rotation)

Postby feral » Mon Jun 09, 2008 5:37 am

pyrometal wrote:The main problem I can see though, is that text actors do not generate collision events,


The quick and dirty fix is to have a standard actor hidden behind the scaled actors to pick up events , that way the nice scalable vector graphic masks the the usual crappy rotated bitmap actor behind...

but I am working on a better plan Mwhahahahaaaa ! cough ! ... essentially pre-render and convert to bitmaps.. will explain soon.. although a few of you can probably already do it...

RE: the animation package... it simply a font creation package, as easy to use as most bitmap drawing packages, except that it automatically rotates the vector graphics for you (and does it very well) i can rotate 36 turns of a char in less then a minute perfectly...

so steps are
1. create a char in font package
2. use font package to rotate as many as needed ( I only used 36, but can easily use upto 255 turns)
3. import to GE and use GE to scale (again scaling is perfect as it is based on vectors, and using the "SOFT" option allows for anti-aliasing with built in transparencies)

NOTE: for multicolored/shaped sprites use a second set of a font char and layer onto first.

i think this is what makes it cool, just how easy it is.. :oops:

there are some bugs that should NOT be in there though.. :evil: . i will list them shortly and ask for help..

feral
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: scalable sprites ( with rotation)

Postby feral » Mon Jun 09, 2008 6:20 am

oh and one other thing...

the quickest way to use these as "real" sprites, is to take them into any package (ms word for example) and type them to a blank sheet - then screen capture the sheet ( as long as you space the letters right ( use a table) , you should now have an instant sprite sheet...for real actors..

also you can have fun with wordart or similar
fontfun.jpg

quick test - click to enlarge
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: scalable sprites ( with rotation)

Postby Sgt. Sparky » Tue Jun 10, 2008 3:14 pm

feral wrote:BTW - SGT Sparky was doing a demo on this for me

I'm sorry, I forgot about the demo.
I am working on softwhere for rotating images (I'm most of the way done! :) ) and an animation program.
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Re: scalable sprites ( with rotation)

Postby feral » Tue Jun 10, 2008 11:09 pm

Sgt. Sparky wrote:
feral wrote:BTW - SGT Sparky was doing a demo on this for me

I'm sorry, I forgot about the demo.
I am working on softwhere for rotating images (I'm most of the way done! :) ) and an animation program.


no problems sgt, i know your busy... thanks anyway.

also I wanted to add, that the reason i was working on this was to give me scalable sprites for my 3D engine, if you have been following it, you will note that they can be text actors in the 3d engine, because all of the collisions and events etc happen in a separate 2d map.. i hope to get back to work on it soon...

cheers
feral
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: scalable sprites ( with rotation)

Postby Sgt. Sparky » Wed Jun 11, 2008 11:15 pm

Sorry, I haven't been fallowing along with your 3D engine (I haven't been on the GE forums much.) but I have looked at how you did it. :)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Re: scalable sprites ( with rotation)

Postby Tivmiv » Sat Jul 19, 2008 5:53 pm

wow..... THANK youi have been waiting for sumeone to post somehing like this!!! lol i wa just abo ut to ask sumeone if you could do this
o.O
+1 point 4 u!!! :mrgreen:
Tivmiv
 
Posts: 2
Joined: Sat Jul 19, 2008 5:07 pm
Score: 0 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron