| User | Post |
|
1:26 pm May 3, 2010
| niek
| | NL | |
| Member | posts 4 |
|
|
Hi Matt,
Probalby a stupid question, but what is the purpose of the 'script=0′ tag is a sprite script file like below? It's not mentioned in the documentation.
Cheers!
xhandle=16
yhandle=16
blendtype=1
data0=0
data1=90
data2=360
script=0
playonce=0
|
|
|
1:39 pm May 3, 2010
| matibee
| | | |
| Admin
| posts 104 |
|
|
It is mentioned in the docs. You just have to find the right bit
http://www.matibee.co.uk/temp/……html#Load
It's what type of operation is performed on the initial data values over time. In the early versions of the framework it was limited to numerical tags 0 - 3 (0 = lerp, 1 = sine, 2 = bounce, 3 = acclbrake) but now you can use the name too, ie "script = sine".
For an idea of what each of these animators do, check out sample #4.

|
|
|
2:15 pm May 3, 2010
| niek
| | NL | |
| Member | posts 4 |
|
|
Ah, ok thank you for the fast response, couldn't find it in the 'Sprites' chapter of the documentation and I have some trouble compiling the source of Gem Smasher and looked only to your resources sample . Gem Smasher does compile but not all sprites are displayed. E.g the intro sprites ("l1″ and "l2″, the backgruond sprite "bg" and the game Gems are not displayed at all using the game data from the executable. In a debug compilation I get an assert that '1.fnt' is missing. I tried to compile is using older versions of your framework with the same results. I thought the problem is somewhere in the intrepetation of the sprite scripts but they seem to be fine. Do you have any suggestion for me?
|
|
|
3:18 pm May 3, 2010
| matibee
| | | |
| Admin
| posts 104 |
|
|
Unfortunately I don't have time to go over Gem Smasher at the moment but two things spring to mind; I'm sure the sprite animators will be at fault since some changes have been made with the animation system. And it should build and run ok with the oldest (first) version of the framework.
|
|
|
7:45 pm May 3, 2010
| niek
| | NL | |
| Member | posts 4 |
|
|
Thank you Matt, I'm able to compile and run Gem Smasher with the oldest version of the framework in release and debug mode From a compilable working version it's easier to learn from and find changes you've made with newer releases.
But it's time to party now thanks to Steve McLaren FC Twente (my local football club in Enschede) won the Dutch football competition this weekend, for the first time in its history, pipping Ajax by a point.
Cheers!
|
|