The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 Viewswouldn't you just do this? (x is between 30 and 1)
x=Math.random()*30
//and if you want an integer
Math.round(x)
if they are just copied for the background, like trees, then convert the to graphic so the iteractivity will be lost and the computer doesn't have to check the position every frame.
-Kylelyk
There are tuts for pivot here.
-Kylelyk
Thats the thing, I just got my Flash 8 a few weeks ago and I am having trouble with varibles so I don't have any work so far finished. I'm not an artist so I can't do a good game by myself. You don't have to accept me if you don't think I cut it. Here's a list of what I know:
if, else if, else
onClipevent()
on()
while()
for()
swapDepth()
removeClip
Math.random()
Math.round()
varibles (but some aren't working)
duplicateMovieClip
arrrays(basic understanding)
do
functions
I think there are a few more but I can't find them in my pages of notes I keep for reference.
-Kylelyk
I'm kinda interested. I know basic actionscript and I am getting better everyday. I have a msn account and Flash 8.
-Kylelyk
Sorry about that, I don't know how to script it.
I want to make a carnival like shooting game that puts out the ducks across the screen randomly.
I am thinking of doing math.random and math.round. Also, when the random number is like 20, a duck will be created and go across to screen.
I will do points later on.
At 7/3/08 03:30 PM, RiftMaster wrote: create a normal text box then choose "Dynamic Text" in the drop-down.
then enter the name of the variable in the variable field.
Thanks
I don't understand how to create dynamic text boxes. I have a varible that I want to see during the game.
So now I want the movie clip to relocate every time I click on him. It does this for 6 times(the points varible) and then it should go to the 8th frame and stop. It is only relocating every time I click on it and after six times, it still doesn't go on to the 8th frame. I also have a dynamic text box that is set to track the "points" varible. It isn't doing this though, most likely because the script isn't going al the way to the points varible, it breaks before that.
onClipEvent(load){
points=0
}
on(press) {
p=Math.random()*(550-1)+1;
Math.round(p);
q=Math.random()*(400-1)+1;
Math.round(q);
this._x=p;
this._y=q;
points+=1
}
onClipEvent(enterFrame){
if(points==6){
gotoAndStop(8)
}
}
Thanks so much it works. What is depth by the way?
-Kylelyk
So i want a movie clip to be removed from the screen when I click on it. I enter in
on(press){
this.removeMovieClip
}
inside the actions panel in the main timeline for the movie clip.
Why isn't this working?
Very few levels means either one of these two things about the game. One; the levels are long and take up so much space that there is not a whole lot of room for more levels, or two; the author is really lazy or just doesn't want to do a whole lot of levels.