12 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

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

The whole squad is here!

Interested? Follow me!

Microsoft Windows XP Unprofessional (windows logo prototype)

"Day to Day" (also check spud out here he's a great guy and writer: https://soundcloud.com/spudward)

I mostly build 3D First Person Shooter game mechanics in Unity, and in this I'm just showing C4 mechanics I made for a little side project I am working on! :)

Some Shadow boss fight gameplay 👾

Where is Spider-man?

(sound ON 🔊) We changed the tree harvesting selection sounds. Again.

Should we stop already? Let us know!

Find out more about the game on Steam:

http://bit.ly/AtS_New_Sounds_GJ