Actionscript 3 :: Flixel - Make FlxGroups Appear On Just One FlxCamera ?

Nov 16, 2011

I have a Flixel project with multiple FlxCamera's. One of them is the main play area, and another is the radar display within the HUD to the right of the main area. I want to add a layer (FlxGroup) to just the radar camera, and I also want to exclude my other layers from the radar camera so they don't randomly show up in the radar's area.

My question is, how do I tell the cameras to only show objects in certain FlxGroup's?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Creating A Button. (using FlashDevelop And Flixel)?

Nov 27, 2010

I'm completely new to ActionScript (as well as brand new to this forum). I'm using FlashDevelop and Flixel to attempt to make games.

The error code I'm getting is: "Call to a possibly undefined method addEventListener through a reference with static type QuitButton." I have an image, quit.png, that I want to use as a Quit button. When clicked on, I'd like the game to go back to the MenuState. I have the image embedded in QuitButton.as, and MenuState is MenuState.as. The actual button appears in PlayState.as. Here is QuitButton.as, as this is where the problem lies:

[Code]...

I have done some intense googling to try to find a solution, which I'd assume is obvious since I've only just started with flash and I'm not programming anything too difficult yet.

View 1 Replies

Actionscript 3 :: Can't Get Flixel Preloader Working Via Flash IDE

Sep 23, 2011

I'm currently trying to work with flixel library via Flash IDE.

Everything is okay except the preloader - it just doesn't work.

I suppose the flash IDE does not support the directive [Frame(factoryClass="Preloader")], which flixel uses when being compiled in flex builder to create a preloader.

Any way to get the flixel preloader working with ide (without modifying flixel sources)?.

View 1 Replies

Flash :: Flixel - Alpha Not Working Properly

Jan 17, 2012

I have something odd happening when I update a FlxSprite's alpha repeatedly to make it fade out. Instead of taking 150 seconds to fade out completely (I actually want 15 seconds), it fades out over maybe 2 seconds. I tried tracing the actual alpha value, and the sprite is invisible when the alpha value is around 0.95 (95% opacity, ie slightly transparent). how I can get the alpha to work properly in Flixel?

[Code]....

View 2 Replies

Actionscript 3 :: Flixel - Load And Play An Embedded Swf File?

Mar 28, 2011

I have been searching the web and all of the codes I have found are to play external swf files that have a timeline. The file that I am trying to load does not have a timeline. I am using the Flixel framework for this project and the file that I want to play is also made in Flixel(don't have the source file just the swf file).Most of the code I have is from a cutscene template that I found on the Flixel forum. Here is what I have so far:

package
{
import org.flixel.FlxState;
import org.flixel.FlxG;

[code]....

When I run this I get this error: Type Coercion failed: cannot convert SponsorsState_SwfClass@fb5161 to flash.display.MovieClip., all I want to do is play the swf file for a set frame count then move onto the next state.

View 3 Replies

Actionscript 3 :: Flixel - FlxButton Is Acting As If Clicked Multiple Times?

Jan 3, 2012

I have a couple of dialog screens made from FlxGroups. The first screen, LandingScreen has a button that opens a second screen, CargoShop. Whenever a screen is added, it is made the active screen in my FlxState, and the other screens' buttons are set to active = false; So, when the button to open the CargoShop screen is clicked, it is set to active = false; at the next update cycle.

Now, the CargoShop screen has a button to close it, which makes the LandingScreen active again. For some reason, as soon as the CargoShop screen is closed, a new one is instantly opened as if the shop button had been clicked again.

These buttons are not on top of each other. Is there some trick I'm missing with FlxButton that is thinks it's clicked when it's not? It only happens when I use the mouse; if I close the CargoScreen with a keyboard command, a new one is not instantly created.

View 2 Replies

ActionScript 3.0 :: Make The Character In Flash Game Make A Jump When The Player Presses A Key?

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

ActionScript 2.0 :: Stop The Script When It's Running - Make The Sky No More Snowy And Make Snow Disappear?

Dec 25, 2002

how to stop the script when it's running.To make the sky no more snowy and make snow disappear.

View 1 Replies

ActionScript 2.0 :: Clock - Make Flash Mx To Take The Time On The System And Make It Run A Determined Frame

Mar 31, 2003

Is it possible to make flash mx to take the time on the system and make it run a determined frame. I want to make a clock that shows the real time. How can I do it?

View 8 Replies

ActionScript 2.0 :: Bit101-collision-agony - Make Them Collide, And Make The Ball Bounce Away?

Apr 13, 2003

I followed the bit101 tutorial on gravity and now have a movie clip called "ball" (instance name) with an embedded invisible button (so you can throw it all over the place).I also have a movie clip called "block1" (instance name too! what a coincidence, isn't life lovely). I want to make them collide, and make the ball bounce away.

View 1 Replies

ActionScript 2.0 :: Make An AUTO Button Which Will Make A Slideshow,showing All The Images In Array?

Jan 23, 2007

this is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?

arrayrow = new Array()
arrayrow=[
["00.jpg","0","sajkad","hjsgadhj"],[code].....

View 5 Replies

ActionScript 2.0 :: CS3 : Make A Combination Of Keys Make A Movie Clip Visible?

Aug 11, 2009

How can i make a combination of keys make a movie clip visible? Basically i want something like this to work:

if(Key.isDown(Key.Alt && Key.A)){
reminder._visible = true;
}

So when someone presses the Alt and A keys down at the same time the 'reminder' mc becomes visible?

View 2 Replies

ActionScript 2.0 :: Make A Mute Button For The Video That Can Instantly Make The Volume 0?

Nov 22, 2009

Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:

ActionScript Code:
m.onPress = function() {

[code]........However, it doesn't seem to work.

View 0 Replies

ActionScript 2.0 :: Make The Background Image Move Opposite The Cursor To Make It Seem Like The Camera Is Moving?

Mar 5, 2006

I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]

View 1 Replies

ActionScript 2.0 :: Make A Preloader For A Little Flash Project That Involves Re-assembling A Load Of Rectangles To Make Up A Pattern?

Aug 4, 2007

I'm trying to make a preloader for a little flash project that involves re-assembling a load of rectangles to make up a pattern.Idea is that instead of the usual load bar i wanted to make use of this pattern that is relevant to the project and have it rebuild it self with these rectangles flying in from the side. So far I have got the tweening sorted using the tween class and staggered the 42 (yes took a little while, probably an easier way so let me know on that also) rectangles using 'setTimeout' so it releases each 100milliseconds after the one one before it. This probably the wrong way to do it but i wanted to check how it looked and this was the one way i knew how to do it.

I want to make it so that these rectangles fly in a complete the pattern once the loading has finished, but on a fast connection I don't want it to rush the animation but for a slow connection I obviously want it to adjust the release time and maybe even the travel speed to compensate.

I had an idea of maybe working out the percentage loaded divided by 42 and then run an if statement to see if that percentage for that segment had been reached before 100millseconds had passed, if 100 had passed then release the rectangle, if not then hold the rectangle until 100 m/s had passed. Not sure if that is the best way to do but that's why I'm looking for some suggestions from more experienced developers.

Code:
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// declare variables

[code]....

View 1 Replies

Professional :: Make A Button Click Make Text Appear Elsewhere On The Screen?

Apr 1, 2011

I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.

View 16 Replies

ActionScript 3.0 :: Make A Program That Determines If Sides Can Make A Right Triangle

Jul 9, 2011

I am trying to make a program that dermines if sides can make a right triangle. The code that I made gives me that it cannot for everything except the sequence 3,4,5.

'Paul Bursu'
'July 08 11'
'To determine if inputted angles can make a triangle'

[Code]....

View 1 Replies

ActionScript 2.0 :: Make Falling Snow Stop Or Make It Go Into The Background?

Oct 14, 2003

I saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.

View 1 Replies

ActionScript 3.0 :: Make A Sprite Button With Graphics And Can't Make It Work?

Aug 22, 2011

* I have a flash project called contact

* The document class is ContactClass

I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.

public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....

View 3 Replies

ActionScript 2.0 :: Possible To Make Array Make It Self?

Apr 23, 2009

I was just curious if an array can make itself.ie, I want an array to be [1,1,1,1,1,1,1,1,1] that sounds silly but there is a reason for it.So without having to say 1,1,1,1,1 dozens of times is it possible to just have some variables, 1, and 100, and have the array make 1, 100 times?or have while (array length = = 100? array = 1?

View 1 Replies

ActionScript 3.0 :: Make A "module" Composed By An Image And A Text And Make Clickable

Jan 16, 2009

I want to make a "module" composed by an image and a text and make this clickable, how could I made this in AS? PS: to create the text I'm using the TextField(), what I have to use to make the image from a url?

View 1 Replies

ActionScript 2.0 :: Flash With Memory - Make A Screensaver With Posibilitys To Make Notes Like 3M Post-it Notes?

Apr 3, 2004

I would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. I have the tools to make screensaver in Flash, but how to make such a flash file?

View 3 Replies

ActionScript 2.0 :: Make A Screensaver With Posibilitys To Make Notes Like 3M Post-it Notes?

Apr 3, 2004

I would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. Is this possibel

I have the tools to make screensaver in Flash, but how to make such a flash file.

View 3 Replies

ActionScript 3.0 :: Make A Circle Object Movie Clip Call Ball And Make A Rectangle Object Movie Clip Call Mc

Dec 12, 2010

make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.

[Code]...

can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?

View 1 Replies

Can A SWF Make Another SWF

May 13, 2011

Is it possible for an end user to play with a swf, change layout, colours, etc... and then save it? Either as a new swf or the same one. Maybe push all the customizable data to a PHP or XML file and then every time you load that swf it retrieves that data from the PHP or XML file, therefore retaining the settings saved by the user.

View 2 Replies

IDE :: Everything Make Lag?

Oct 2, 2010

How can I make my movies less laggy? so they run smoother and require less of the video card? Take this for example: [URL]..

I realize the frame is massive. but it's like three movie clips and i don't understand how people can develop such satisfying images without it lagging, and why mine are sooo dang slow.

View 2 Replies

How To Make An Animation

Jun 18, 2009

can someone please help me or teach me how to make an animation where drawing is involved. its like this, im teaching preschoolers how to write letters and numbers. straight lines are easy to do but i could do the curve lines.

View 2 Replies

Make A Transparent SWF?

Aug 5, 2009

is it possibel to make a transparent SWF, or not? i want to make a word glow but have no background you see?

View 2 Replies

Make MC Repeat Look Better?

Apr 1, 2010

I don't know much about flash.. I've created a MC with tomatoes falling.. when the MC repeats itself, which I want it to, looks too "rough". I am hoping to make the transition a little smoother.. I've read a little about mathematical random function, but it looks so complicated.Here is the flash: http:[url].....

View 4 Replies

Make An Interactive Map?

May 28, 2010

I'm trying to make an interactive map, whitch the size is 2880 - 2090, and the problem is the zoom in and out, I Want it to start with the magnification of 60%?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved