View Full Version : [AS2] Help with a text game
mdhoss
10-05-2009, 04:20 AM
Hi, I'm looking for a little coding help with my file. I am a teacher and trying to make a simple text game. The trouble I'm having is that when I go from one frame to another, the text tiles do not reset to their original positions in each new frame. Could one of you pros take a look please? Any help any of you can give is greatly appreciated. I've included the file here.
prog.enthusiast
10-05-2009, 06:12 AM
Open the actions menu for the next button in the first page and add this before the gotoAndPlay function:
box1._x = 177;
box1._y = 360.1;
box2._x = 239.3;
box2._y = 360.1;
box3._x = 305.6;
box3._y = 360.1;
box4._x = 369.6;
box4._y = 360.1;
Now for each one of those grey boxes, you will have to give them each an instance name (which is located on the properties panel). Ex: 1st grey box write box1, 2nd grey box write box2, etc.
Now you will have to do this to all the frames
BTW, you did not need to create 4 identical grey boxes in the library (as I noticed) you should have just created one, then drag the box into the flash stage and given each box a separate instance name.
Good Luck!
mdhoss
10-06-2009, 05:50 AM
Hi, I'm looking for a little coding help with my file. I am a teacher and trying to make a simple text game. The trouble I'm having is that when I go from one frame to another, the text tiles do not reset to their original positions in each new frame. Could one of you pros take a look please? Any help any of you can give is greatly appreciated. I've included the file here.
Ahhhhhh....DOH!
Thanks so much for this prog.enthusiast! It is a great big help to me.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.