Hi!
Can anyone help... I am editing an already existing game from flashkit for an assignment..as we are allowed to do this. Anyway, in the game, using the arrow keys the user moves the character around with a rectangle and collects items, whilst avoiding the killer items. The original dimensions were tiny so i re-sized the game. My teacher was able to work out how to change the boundaries for the character, so it can only move within the rectangle. However, we are unsure how to do this for the 2 other items.
Does anyone know how to do this? If so can i email you the file as It is 100kb too big to upload! Sooooooo annoying! It will become clearer what i am asking once you see the game.
Please...im am desperate for help.
Ta.
Melissa
when u resize the movie... u will notice the characters still stay in the same area. I can get the character the user controls to move within the new area but not the others.. any ideas?
It looks pretty simply here. I only looked at the code though I did not edit it. On frames 2 and 3 they have x and y variables. You know this is how wide something is and how tall something is on stage, or the limits of what happens on the stage. The smaller the numbers, the more confined the stage area. So, look at each of the first four frames and the action script attached to each. IN the action script you will find X and Y variables. I would first edit one and test your movie for any noticable differences. Once you find the correct numbers to edit, reset the x and y variable to fit your movie size. This should take little time of edit and test to get it right.
Hint: If you edit the number 130 on frame 2 also edit it to the same on frame 3.
Notice y variables and notice ymax.
I am a teacher. So since this is a school project, I think you can figure it out with that -- don't want to actually do it for you.
in frame 2 i put the values as:
xmin=70;
xmax=420;
ymin=60;
ymax=360;
however i am unsure what to put for this bit in frame 2:it._visible = false;
for (n=1; n<50; n++) {
I[n]._x = random(400)+50;
I[n]._y = random(400)+20;