ActionScript 3.0 :: Make A Level That Follows The Character?
Jul 31, 2011how would i make a level that follows the character? would it be a on enter frame event?
View 13 Replieshow would i make a level that follows the character? would it be a on enter frame event?
View 13 Repliesi was wondering if any of you out there could tell me how it is possible to make a movieclip of a character and when the character is dragged about the screen by the curser, how do you make the characters arms and legs swing about in a realistic fashion.
View 2 Repliesi want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 RepliesI am doing a website in which I load a bunch of movies with an empty first frame to different levels in the first frame of the main movie. When I want to see each movie I have a button which tells a specific level to gotoandplay (2). Every time I "play" a loaded movie, I also tell all the others to gotoandstop (1) - so I wont see them anymore.Is it possible to make a loaded swf to "jump" to a much higher level - and all the other movies go back to a lower level? this way I wont have to make my movies go back to frame 1 all the time.
View 3 Repliesi've got that when you click a button it takes you to the next frame/level of the game, but i want to make the next level harder, meaning you have to kill all the enemies to goto the next frame/level, so, how do i make it so you have to click ALL 3 buttons on the stage to go to the next frame? Or is there another way to do this?
View 4 Repliesi was just wondering if anyone can point me to a right direction or help me out. I have this game with "balls" coming from down and going towards up and i was just wondering how can i make more and more of them come depending on the current level.
I guess all of them are going to be copies of the same "mc" but can anyone me copying them.
I am trying to make a password to access a certain level. heres the code ive come up with.
[Code]...
where the input text box var is "input" but for some reason, its not working. the "else" command is working perfectly, but when i try and use the password "35" to get to frame 35 it treats it treats it as "else" as if its not recognizing the password.
Im trying to make a object only appear when you have collect enough coins. How could i do this?
View 2 RepliesAm trying to make a 3 level flash menu. I'm getting into Flash and Actionscript 3 all in all so I'm a beginner as well.I'm also using TweenLite for the tweening and I got as far as the attachment goes. The problem is that when the 3rd and last level comes out on a mouse hover, ok so far so good, when the mouse goes over that 3rd part, the "menu goes back" animation is triggered as if I hovered out of the whole menu It probably sounds confusing, a flash file is worth a million words so check it out. The .fla is for CS3+
View 4 RepliesI'm creating a simple shooter game and I've replaced the mouse cursor with a custom one. It works good but my monsters appear above the cursor. How do I make the cursor always remain on the top most level/layer?
View 15 RepliesSo I'm making a platforming game, how do I make my character have a different animation for when he runs or jumps?
View 4 RepliesI got a curve(e.g. movieclip) which i want my character to go on when i press left/right arrow. How to make that?
View 2 RepliesI've created a walk cycle using bone tool on a character but i don't know how to make it move from one part of the screen to the other. The character is made up of 6 layers, 4 of which are armatures and 2 have motion tweens.
View 1 RepliesI am creating a game in flash using spirte sheets of megaman and I have a problem setting up script to make him jump. I am able to have megaman run side to side and also shoot but I can not get him to jump. Here is a sample of my code:
var hspeed = 0;
var vspeed = 0;
var i = 0;
[code].....
How would i make an enemy bullet go towards the main character?
View 7 Repliesim making a platform game at the moment and i need for the screen to follow the character, at the moment i've got the code on the background symbol and all the baddies in that symbol so when you press the arrow key the symbol moves to the side the code i have on this is
onClipEvent (load) {
walkSpeed = 2;
}
onClipEvent (enterFrame) {
if (air == true) {
[Code]....
if anyone knows a way to put this on the camera
I want to know how to make a character attack in a game. I've made a platformer game in which a character moves and jumps and collects the score balls, but the only thing I can't do is make him hit enemies.
View 1 RepliesHow would I go about doing this but not directly like 360. like lets say my mouse is to the left of the character the character would than face its left frame I made for him like lets say his left frame is frame 2.
View 8 RepliesI want to make a fighting game with my own character skins and those of my friends as a fun thing.I'd like it to have an intro, menu, character select, level select. I'd like the levels to be able to scroll and for the characters to have health metres. So what I am looking for is either a tutorial to build this up, or be able to look at a completed one and take it apart. I'll be able to handle the art on my own.
View 4 Replieshow do i make my animation not fall of the stage when i make it move with they arrow keys?also how do i make my character jump when i hit the space bar using actionscript?
View 1 RepliesI have a 2D game (top down), and I would like to make the character escape from a shot, but not just walk away from the shot (I mean, don't be pushed by the shot), I want it to have a good dodging skills.The variables are:
shotX - shot x position
shotY - shot y position
shotSpeedX - shot x speed[code].....
I have one character which can face several directions: t, b, l, r, tl, tr, bl, br.The type of camera is top-down 2d
T stands for Top, which is when he is looking to the top of the screen
B = Bottom
L = Left
R = Right
The character can look to other directions, like the Top-Left of the screen, which is tl
How do I calculate which direction he should look to if I only have one variable, rotation?
Is it possible to make 3D character customization for game in flash? Any ideas, tips about that?. In 2D it's very simple but i don't know where i should begin in 3D. First of all - how character customization works in rpg games? Is character body and all cusomizable parts like hair face, solid model? Or it's just different objects in one container?
View 2 RepliesMy problem is how do i make the character disappears when move on to certain places(clicked by user). For example i have a Object(house) with x=233 and y= 134, when i click on the object (house), the character will move to that current object(house) and when the character has reach or move in the house, the character disappears(character.alpha = 0).
View 4 RepliesI have a problem with functions.I want to make a function that moves the character and let him do a different thing like kicking or going down and jumping. Here is the code i have:
Code:
function enableKeyMovement(clip) {
clip.onKeyDown = function() {[code]....
i want the up key to be pressed once, the down key to be hold on to and when released it goes back, and the right and left to be hold on to and when released goes back to 1.
I want a make a game where you get to customize your character and that is the character that you play with the whole game.
View 1 RepliesI am making a simple word processing widget, like this one: [URL] for my kindergarten classroom.
The problem is that the embedded font does not use a lined space when you hit the space bar. It makes a space. The lined space is created by hitting the "" key --just above enter. I have been trying to use a key listener to add the lined space to the text box when you hit the space bar. It works, only it also gives you the "space" created by the space bar.
Basically, on the stage is an input text box (myTextbox) with the font embedded. Here is my script:
Code:
stop();
var keyListener:Object = new Object();
makeSpace = function() {;
[Code]....
Is there a way to remove the space from the text before adding the lined space?
I am trying to make a character jump on to a platform this is my code. The block1, block2 etc are the blocks that I want my character to jump on
PHP Code:
var onBlock:Boolean;
var blockHolder:Array = new ArrayblockHolder.push(block1)
blockHolder.push(block2)
blockHolder.push(block3)
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkBlock)
[Code] ....
The onBlock boolean is used later but my problem is that the code doesn't work.
im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF. Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1. When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1. However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not. Here's my AS2 code:
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{ trace("loaded"); //This works removeMovieClip(mc_Empty1.mc_FadedBg); //This works}
[code]....
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not.