ActionScript 2.0 :: Make A HitTest Script That Makes A Character That Touches A Few Spikes Teleports?
Nov 17, 2009
I am currently making a platformer game and I want to make a hitTest script that makes a character that touches a few spikes teleports to a position on the map.
[Code]...
View 0 Replies
Similar Posts:
Jun 7, 2009
I'm making a game using Cs3, and As3, And I need a way to make it so when the character touches a swirly thing it goes to another scene...How do I do that?
View 3 Replies
Oct 25, 2009
I added attack to my character in the game and he attacks and the enemy dissapears, the problem if I can't get my character to die when he touches the enemy. I got it to work once but what happened was that even if I hit the enemy, as soon as I hit it I got to the game over screen and got stuck on a loop between the gameover screen and the moment I defeat the monster.
View 2 Replies
Oct 24, 2006
Just like the picture below, I only want the codes execute if the object touches the side of the rectangle, but not the corner, how do I do that?
View 1 Replies
Sep 24, 2010
I have a 9 frames image of a character.In other language generally i used to make character animation by looping the array consisting of different frames and drawing each frame when pressing key.What i want to do is when i press left or right key, i want to draw each frame that makes character movement and update x coordinates of frames, and it will appear as character is moving.
View 4 Replies
Jul 5, 2011
I'm currently making a flash game and to insert sound. The sound effect has to play everytime the character touches the coin yet the coin still has to be able to unload. I never used sound before in flash.
View 1 Replies
Jan 12, 2010
I have a particle generator class and I want to create a hitTestObject function on another object to check for any collisions with the particles produced.I bascially have a character already on the stage called character_mc and I want to be able to collect the particles, that means when the character touches a particle, the particle disappears.
View 1 Replies
May 3, 2009
I have a character, he stays in the center whilst the surroundings move instead (scrolling). There is a block and when you walk into it, I need it so you cannot walk through it or get stuck in it. Here is my code below but, its very buggy, this is obviously been done before and may be simple, once I learn it I wont need to ask again. Iv tried other things but they dont work.[code]
View 6 Replies
Aug 11, 2009
i 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 Replies
Jun 14, 2010
Important: ActionScript 2.0Flash CS3I have some knowledge in Java and C++ which makes this easier... Im trying to make a game and the collision *** does not stop the character in its spot... if i set _y to 0 then it would go to the top of the screen... if i set _y to -1 each frame that the hitTest is active then the character goes through the platform and the rises by -1 (1 up) _y .... how can i make it so the character is stopped immediatly when touching (hitTest) the platform?
[CODE].....
View 6 Replies
May 28, 2010
Alright, so there's this bad guy and he's an angry square that follows the player on stage but when he comes in contact with the player instead of exploding like the rest of the baddies, he teleports millions of pixels off stage.[code]
View 1 Replies
Jun 15, 2003
I want to know how to make a Collision witch makes you go back a little.
See say when a car hits another one i want to know how to make it go back away from it any one got ideas.
View 5 Replies
Mar 14, 2007
I am trying to make a class that makes a tiled background but i cant make it to work. Here is the code:
[Code]...
View 7 Replies
Dec 19, 2009
i 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 Replies
Aug 10, 2005
how can make a button that makes the current page my homepage? im 99% sure there's Javascript involved and I've tried writing it my self P.S if its, I got one button to work (adding to favorites),
View 5 Replies
May 27, 2003
I'm trying to make a simple for loop that makes a line move. But it won't work, and when i search for "for loop" it gives me all these dynamic things that are WAY over my head.[code]The way i see it, the i should increase by 1 each time the loop is run, and then the line will move up by 1 until it is at x = 0 (it starts at x = -77). But when i preview it in flash and html, nothing happens at all.
View 6 Replies
Sep 1, 2011
I want to make a flash animation that makes an object move across the screen to a certain point, depending on what is typed into a text box, and i want many of these moving objects at once, so that you can type in a number and then the object moves to that point. Can this be done?I have used flash but have done verry little with the actions of flash, so please walk me through any actions that will need doing
View 1 Replies
Nov 3, 2008
Im trying to make a timer, that waits 15 seconds, and then makes a movieclip goto a certain frame. Is this possible with Timer() and an if statement?
View 1 Replies
Oct 9, 2007
I have recently followed a tutorial to make a movieclip in flash that makes buttons spin around a point depending on the mouse position. I have made my own version off this and would like to use it in a full flash website that i am making at the moment.
The only problem that i am having is with aligning this clip and as it is made up of script i cant physicly drag it to were i want it. I understand how to alighn this with x/y positioning but when i preview the flash in a web browser it is positioned correctly but then when i 'full screen' the browser this clip jumps about 4 inches down the page.
View 1 Replies
Mar 18, 2006
I was wondering how would i make a mc appear when a hittest takes place at the location of the hittest. What im trying to do it make a Mortal kombat game and i want when u say uppercut them the mc of blood appears at that hittests location. So is it possible for it to like detect where the hittest took place and duplicate the mc there?
View 10 Replies
Mar 7, 2012
I'm trying to do that when the user touch (not click with mouse the program runs on androidthe code gets the (position of) touch x and y (like _xmouse but it dosen't work on ndroid)
How can I do it?
View 1 Replies
Sep 6, 2011
Lets say that I got movieclips A,B,C,D in my scene and E,F which only come into scene when A hitTest B and C hitTest D.I was able to make the A+B and C+D hitTest functioning properly. But when E,F came into the scene, I tried to make E to hitTest F to get something else function but they won't work.# note that there is some short animation before E & F come into scene.I am pretty sure all the instance names are named properly.
View 5 Replies
Apr 3, 2004
I'm try to make the Collision Detected with hitTest for long time but it doesn't work. I have two objecct one is the Spaceship and rock. When those two hit each other. I want it to show text "Collision Detected" This is my script
Frame1 script
var rockCount = 0;
var rockTimeGap = 1;
var nextRockTime = 0;
var startTime = getTimer();
[code]...
View 3 Replies
May 5, 2010
I'm having problems with my flash game, i am making slimeball and im using the hitTest to make my ball bounce off of the players, but because my players are semi circular when it hits off the back of my player the ball still goes forward when it should bounce off the player in the direction that it came from, if that makes sense
[Code]....
View 1 Replies
Mar 21, 2007
I am making a small game in which you are a little shooty spaceship type thing, and there are duplicated mines falling around you. When you press space, the shooty spaceship type thing fires duplicated bullets. How do I check a hittest between any bullet
View 3 Replies
Jun 29, 2009
I'm having an issue with using a hitTest to make a thumb menu from an image gallery I'm working with move up and down. Basically I need to use a hitTest because there is a conflict with the other rollover functions in the menu itself that prevents me from using a simple onRollOver function. All I want to do is hide the menu until the mouse rolls over it then I want it to pop up then on roll out hide itself again. The gallery is part of a larger site that loads the gallery into the index page and has a full screen function so it needs to stay at the absolute bottom of the page just above the footer at all times. Here is the code I'm working with but think I'm over complicating it.
[Code]....
View 13 Replies
Jun 26, 2010
So I'm making a platforming game, how do I make my character have a different animation for when he runs or jumps?
View 4 Replies
Jul 31, 2011
how would i make a level that follows the character? would it be a on enter frame event?
View 13 Replies
Feb 5, 2011
I 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 Replies
May 12, 2010
I'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 Replies