RE: Flash help and tutorials, checked daily (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 18:17:43)

quote:

ORIGINAL: flsg

lol I just got a weird idea: maybe we can make a contest with no prize, we can show our best flash work, and then we'll have a champion[:D]


if we do i dont want any loser cheaters lol, meaning the ones who download a bitmap from google like a picture of a cloud and just convert it into flash by going to bitmap -> trace bitmap, i can tell when people do that, i've done it myself like the grass in some pictures, you can really tell original from fake, trust me

way to tell is you see little triangles or microscopic dots that not even the flash paint brush could fill




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 18:37:12)

lil boi blue: If they didn't turn off showMenu or allowscale, you could also zoom in real close, and if they traced, the vector would look interesting.
You could just ban the ones who did just break apart or trace the bitmap.




ericabo123 -> RE: Flash help and tutorials, checked daily (3/7/2006 19:27:48)

neither of those work...i just want a white unpassable wall....




lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 19:55:29)

k my turn lol, make your balls name bob in the instance box down in the properties tab, now on the stage, make a line the same color as your background and make it a movieclip and give it the instance name Uwall and place it in the sky where you want the top of your ball to stop moving up,

give your ball who's name is now bob this code or add it on

onClipEvent (load) {
moveSpeed = 20;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {this._x += 20;}
else if (Key.isDown(Key.UP)) {this._y -= moveSpeed;}
else if (Key.isDown(Key.DOWN)) {this._y += moveSpeed;}
else if (Key.isDown(Key.LEFT)) {this._x += -20;}}

onClipEvent (enterFrame) {if (this.hitTest(_root.Uwall)) {_y = _y+20;}}

20 is how fast the guy goes so if you change the movespeed you'll have to do the same for the _y=_y+20 thing, also if that doesn't work make sure that
1)the uwall is in the sky not the earth,
2)switch the {_y = _y+20;}} to {_y = _y-20;}}
3)prey to god or whoever you believe in/dont believe in




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 20:41:06)

Hmm...did you put the code on the main timeline? Did you follow the directions in the code? I can't imagine what could go wrong. Can you tell us what's wrong?
If it still doesn't work, change the setInterval line into the following:
name.onEnterFrame = function(){
(still replace name with your char's instance name)
Also delete the line },30); and put in just }
If it's just a wall you want, put in this code.
//put this on the main timeline
//set variables
//note:replace name with your character's instance name
//replace wall with your wall's instance name
//this of course is for a wall higher than you.

movespeed = 5;
wallX=_root.wall._x+_root.wall.height;


//basic movement
name.onEnterFrame=function(){
if(Key.isDown(Key.RIGHT)){
name._x+=movespeed;
}else if(Key.isDown(Key.LEFT)){
name._x-=movespeed;
//if the key Up is pressed and the char's lowest point is lower than the wall
}else if(Key.isDown(Key.UP)and name._x<wallX){
name._y-=movespeed/2;
}else.if(Key.isDown(Key.DOWN)){
name._y+=movespeed/2;
}
}

If it still doesn't work, I'll rewrite the code.




ericabo123 -> RE: Flash help and tutorials, checked daily (3/7/2006 20:47:52)

ok, none of these work. I get the same result with all of them. My character, a blue ball, passes right over the line.Thats it, nothing else happens. I wanted the white line to be a "barrier" type thing to block the blue bubble off.




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 20:52:24)

Try using a larger wall for Lil Boi Blue's code. Notice that all of our code is for an upper wall.
You should be able to manipulate it to us it for all kinds of wall if you know what you are doing.
Please try to know what and why the code works, not just copy it.




ericabo123 -> RE: Flash help and tutorials, checked daily (3/7/2006 20:55:19)

ok i got it working..one problem though lol, if you hold down the up key and try to break the barrier, its possible rofl




lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 20:55:22)

lol, i think i will make a thing where its a game and when you hover over the thing like a wall or character or anything, it will show the actionscript used




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 20:59:32)

Lil Boi Blue: For that, it might be easier to learn a side language(ASP, XML, PHP) Otherwise, you'd have to either define the text (other easiest way), or handwrite in a static textbox manually.




lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 21:02:32)

done worry, i've done things like it before, i think i use dynamic boxes, where when you run over it makes the text change color lol, from alpha 0% to alpha 100% and then back to alpha 0% or just make it like a button, trust me, i just go out of the box, im not too for java,




flsg -> RE: Flash help and tutorials, checked daily (3/7/2006 21:03:07)

now, here's a simple way:
put this code on _root's AS panel, the ball's instance name is myBall:

myBall.onKeyDown=function(){
  if (Key.isDown(Key.LEFT) || this._x>0){
    //moving code here...
  }else if (Key.isDown(Key.RIGHT) || this._x<500){
    //moving code here...
  }
  if (Key.isDown(Key.UP) || this._Y>0){
    //moving code here...
  }else if (Key.isDown(Key.DOWN) || this._y<450){
    //moving code here...
  }
}
Key.addListener(myBall)


onKeyDown is one of the Key Object's Listener Event, it invoke a temp function that does the thing we want
moving code could be: this._x+=5
addListener add the Listener, myBall

lil boi blue: what you want to do is super easy, do you want me to do it? lol
somebody621: you mean server-side language, right?




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 21:26:31)

Lil Boi Blue:Don't change the alpha; Use the visible function.
Also, flsg, wouldn't that code be for so that the ball doesn't go off the stage?
Also, since 450x500 isn't always the movie dimensions, you might want to use stage.height and stage.width.
Last solution for walls: Use arrays for the area where 1 is walkable and 0 isn't.
Using this system, you can make multiple-height slopes in a platform game, ladders, and all that kind of stuff you see in Mario[:D].
Yeah, I do mean server-side.




lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 21:48:30)

quote:

Lil Boi Blue:Don't change the alpha; Use the visible function.


you know that alpha is the visible function right?




Zoltan -> RE: Flash help and tutorials, checked daily (3/7/2006 21:50:29)

He asked me and I just sent him a .fla file lol so much quicker because everything is allready in place. Some people might say this is wrong because they arnt learning anyhting, but if they want to learn they will learn[8D]




somebody621 -> RE: Flash help and tutorials, checked daily (3/7/2006 21:51:03)

When I mean visible, I mean like this._visible = false; (I think that's how you put it. It's either that or this.visible = false;, can't remember)
Zoltan:Heavily comment the code! lol




Zoltan -> RE: Flash help and tutorials, checked daily (3/7/2006 21:59:55)

Mmmmm I should have done that but it was such a basic one that I couldnt be bothered. yeah and it is this.visible = false; Or onClipEvent (load) {
_alpha = 0;
}

for no apparant reason atall!




lil boi blue -> RE: Flash help and tutorials, checked daily (3/7/2006 22:04:31)

god, lol, i'll just let you guys fight over the actionscript title im for the design not the games, thought they are fun to make




Zoltan -> RE: Flash help and tutorials, checked daily (3/7/2006 22:47:06)

Actionscript title lol, form what he has writen im shure him, flsg and many otheres are better than me, But I just like to help[8D]

Also Ive been book and tutorial crazy latley and I'm finaly ready to start work on my big rpg, Its gonna be elderscrolls styles, I may have to call on the help of you and many of my other friends and fellow flash users if I get stuck or need artwork so wish we luck ~lol~




ericabo123 -> RE: Flash help and tutorials, checked daily (3/7/2006 23:12:19)

quote:

ORIGINAL: Zoltan

Actionscript title lol, form what he has writen im shure him, flsg and many otheres are better than me, But I just like to help[8D]

Also Ive been book and tutorial crazy latley and I'm finaly ready to start work on my big rpg, Its gonna be elderscrolls styles, I may have to call on the help of you and many of my other friends and fellow flash users if I get stuck or need artwork so wish we luck ~lol~


elderscrolls games rock..go morrowind soon to be oblivion!




Jergal -> RE: Flash help and tutorials, checked daily (3/8/2006 1:55:25)

Hehe... Are many of you used to actionscript ? If so, it might be fun to make some sort of contest about that one of these days. That would also be a nice occasion for you all to practise; having a stake tends to be a good motivation! Maybe custom title and eventually avatar uploading abilities as rewards (unless you have a not-so-bright past as a forumite).

It's just an idea thrown randomly. For now I'm only curious about the number of people who are able to use actionscript on these forums. [;)]




Zoltan -> RE: Flash help and tutorials, checked daily (3/8/2006 2:18:07)

There are plenty of people that can use actionscript just some are better than others. I personaly know of three people that are realy good, I mean there is using AS then there is Knowing AS.




flsg -> RE: Flash help and tutorials, checked daily (3/8/2006 8:59:45)


quote:

ORIGINAL: somebody621

Also, flsg, wouldn't that code be for so that the ball doesn't go off the stage?
Also, since 450x500 isn't always the movie dimensions, you might want to use stage.height and stage.width.


OMG, didn't think of that...for the first time in my life lol[:(]
anyway, I'm more confortable with tiles:

//declare an Array
var myMap1:Array=new Array()
myMap1=[[1,1,1,1,1]
                [1,0,0,0,1]
                [1,0,1,0,1]  
                [1,0,0,1,1,]
                [1,1,0,1,1]
              ]
//put this function in _gloabal in case that we need to use it in a MC
_global.mapBuilder=function(the_map){
/*code here
make 2 loops, one for the height(i=the_map.lengh), other one for the width(j=the_map[0].lengh)
then attach tiles MC in the loop
*/
}




somebody621 -> RE: Flash help and tutorials, checked daily (3/8/2006 9:28:56)

flsg:That is probably the most flexible and efficient method to make maps. I've managed to make multiple sloped tiles for a platform game with tiles, but it kinda makes weird collision detection for a slope that takes up more than one tile. I'm trying to work on it and put it isometric view.




flsg -> RE: Flash help and tutorials, checked daily (3/8/2006 9:47:19)

collision detection are easy once you know how to do it
get the player's x and y position on the tile, then you'll know the tile behind and beyond him
once you did this, check it's walkable:
//same as if(upright==true&& upleft==true){
if (Key.isDown(Key.UP) && upright && upleft){// if all of them are true, then continue
  //in flash, y's coordinates are different, so it's not y+=5    
  player._y-=5
}




Page: <<   < prev  19 20 [21] 22 23   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.1396484