11 years ago

PuzzleScript Animation - Animated Tile


Here is my three frames road animation from #FunkyBird, ‘OBJECTS’ (named r, s & t for level map design):

Road1 r
green darkgreen darkgray
22222
11100
11001
10011
22222

Road2 s
green darkgreen darkgray
22222
10011
00111
01110
22222

Road3 t
green darkgreen darkgray
22222
00111
01110
11100
22222

And we need ‘temp’ tile:

temp
white

Now the ‘LEGEND’ entry:

Road = Road1 or Road2 or Road3

So, the ‘RULES’ for animation are:

(…)
[Road1 no temp] -> [Road2 temp]
[Road2 no temp] -> [Road3 temp]
[Road3 no temp] -> [Road1 temp]

(…)

late [Road temp] -> [Road]

(i.e. animation frames are changing this way: 1->2, 2->3, 3->1; it’s 1,2,3,1,2,3,1,2,3, and so on…)

The rules are executed every turn (every player move/every using of directional key).

If you want rules compatible with realtime (beta) feature of PuzzleScript you should prepend rules with ‘[stationery Player]’ and add ‘[stationery Player] after arrow (f.e. [stationary Player][Road1 no temp] -> [stationary Player][Road2 temp] )

Happy coding.

#PuzzleScript



0 comments

Loading...

Next up

🍒Did you like the game? A demo is available for free on Steam.

✌️ Thanks for playing IndieGameiacs!

⚙️ Free Demo: http://bit.ly/UniDuni

📺 Full Video: https://youtu.be/5qEbVXg7GaQ

#steam #uniduni #clops #screenshotsaturday

Have a good Boi

What do you think guys in my robot?Just a beginner in 3d modeling..

My instagram https://www.instagram.com/rojhonbb/

The whole squad is here!

Interested? Follow me!

I-Buki

Mio-Da!

Ibuki Mioda!

In the quest for accessibility, I'm adding Resurrection Shrines for players on the 'novice' end of the platforming spectrum.

In order to unlock the power of a Shrine, you must collect 3 'Souls' from your dead corpses! (the floating blue orbs)

The Darkside Detective: A Fumble in the Dark is out TODAY! 🖱️Advanced pointing, clicking action 🖨️Very funny words! Loads of them! 👻6 sarcastic, spectral cases to solve

Call it 'wrong turn'!🚫 The feeling of running into a house with only one exit🚪, and being doomed to die. #pixelart #pixelartist #pixelartwork #art #pixel #indiegame #IndieGameDev #indieartist

Path of Kami, running around the shrine area

Among us_into Madness