Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Animating the Show Picture

Alright, seeing as how no one is gonna do this for me (as my request goes unanswered)... I've decided to take things into my own hands...

Ok, what I'm trying to do is create a script that would allow me to create at Tales-style "Skit" using pictures. Now, yes, I can easily event things into place, but here's the kicker- I can't animate the pictures (which, animating the pictures would allow for the skit faces to appear to actually be talking, which is what I'm trying to do...) without a script.

What I'm aiming to create:

I'd have my event code look like this:

[Event Page]
Show Picture: 1,'Girl_Skit_Face_Happy', Upper Left (150,115) (100%, 100%)
Show Picture: 2,'Guy_Skit_Face_Embarrassed', Upper Left (450,115) (100%, 100%)
script:
Code:
 $animate.picture (1, 3)
$loop.animation (1, 2, 3)
Text: [Insert some Text Here]
script:
Code:
 $stop.animation (1)
End

The script command would be like this
$animate.picture would start it, the arguments being ([Picture Id from Show picture Command], [Amount of Frames])
$loop.animation would cause the animation to loop, it's arguments are ([Picture Id from Show picture Command], [Start Loop with This Frame], [End loop with this frame]) (Do note, I'm gonna try to make it so that, if the loop is called without the start and stop commands, it will just play all of the frames over and over)
$stop.animation would stop the animation, argument: ([Picture Id from Show picture Command]), thus returning the picture to the way it was when the script was first called.

Or, that'd be my plan anyways... I have no idea on where to begin.

I've got a base idea. I've created a class for my script, and got some variables.

I need to know how I'd call in the data from the "Show Picture" command to fill some of these variables.
I'm also not quite sure on how to get the script to act off of the script event command.
Any help would be greatly appreciated.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top