CRE8OR - game maker for anim8or

 


GUI AND ANIMATION


   In this tutorial we'll need Spin,

You'll need Cre8or Version 0.09a in order to run this correctly.

      In this tutorial we will see how we can use the new features of Version 0.09a using GUI and Scene Animation

   We begin with the following items:

An object, a scene, and a picture. As far objects and scene goes you'll need anim8or experience. The scene is animated with the camera spining around a box. The texture0 is a picture of the cre8or icon.

This is what I want the screen menu to look like:

So lets add a screen menu:

Now let's a a button to the screen:

This adds a button to the screen:

Now add more buttons so it looks like this:

Now we added a bunch of buttons to the screen, but we want the big button to actually be a picture and the button "EControl1005" to be a text box. so we need to chnage some properties. This property tells me if it is a button:

Click on the big button and chnage it to a picture:


Now Change "EControl1005" to a text box:

Now let's chnage the names of the control objects to sensible names, notice BTN is attatched to the end of the name so that it is recognizible:

Now change the "Caption," the caption is the display text of the button/textbox/label. For the PlayBtn put "Play", StopBtn put "Stop", RestartBtn put "Restart", and GotoBtn put "Goto". For the GotoText put 0.

Now set the images picture file, by copying the file text from Texture0, to the Picture File property of the picture object:

Now go to "Scene01" and chnage it so it is animated:

If you run it you get this:

 

Now Let's add a mouse to the menu:

And update the mouse:

Now let's add functionality to the buttons:





For the Goto, we want it so you can enter in a frame number into the textbox and use the number to set the frame number so, enter: "GotoText.get_text().tofloat()" into the Goto text box:

Now when you run it there's full functionality.

Let's make it so the scene loops. Add a frame event to the scene:

Add the go to action:

That's it for now!


Tutorials Page




Copyrights (C) 2007 Keith Tabert
Thanks to R. Steven Glanville for Anim8or, Robin