put the sprite relatively

Hello everyone, would you please show me a way to put a sprite from another sprite on the stage (for example the sprite a resident 5 mm to the b on the stage, when a, b of sprite sprite does not change compared to the sprite sprite one)? (could you please introduce me a tutorial or a sample abut this case)
Sincerely yours Mohsena

Try something like:
-attached to the sprite b:
on beginSprite me
Sprite (me.spriteNum) .loc = .loc sprite (a) + point (5, 0)
end

Tags: Director

Similar Questions

  • reset the position of the sprites

    Hello world

    I'm unable to a simple matching game.

    Basically, I want to create a code that will ensure that each sprite is at a location given at the beginning of each game. Currently these sprites are not in their correct location when the game is re-played.

    The following code displays the error "Script error: property not found. Can someone tell me what is wrong with him?

    on prepareFrame me

    -put the sprites where they are supposed to be

    resetpOrigLoc()

    end

    on resetpOrigLoc

    Member("Kngwarria").loc = point (73, 111)

    Member("Kamaarra").loc = point (151, 69)

    Member("Ngala").loc = point (220,24)

    Member("Pungarta").loc = point (307,68)

    Member("Pilthaarra").loc = point (375,25)

    Member("Purrula").loc = point (445,68)

    Member("Mpitjaana").loc = point (549,112)

    end

    Thank you, else

    As James suggested:

    However, you call this Manager each time Manager refreshes the screen, so the sprites will be constantly placed in these positions, even if the user tries to move them.

    I suspect that you want 'resetpOrigLoc()' Manager in a beginSprite handler, instead of prepareFrame.

  • How can I put the sign of degree of a relatively unused key on the keyboard?

    I want to change the ^ key to the degree

    º sign... How can I do this? AND every time I use the symbol of the degree character can I put the symbol degree... where I want... but on the open next line... isn't exactly like on this e-mail.

    The term is remapping the keyboard and you can find this informative article

  • Impossible to uninstall and reinstall word 7 indicates the language does not support my system then if I put the disc reinstall anyway it says error installation and a close button...

    Once again microsft 7 uninstall and reinstall problems Impossible to uninstall to reinstall it says error language does not support my system... then if I try to put the disc reinstall it says error during installation and just one button close... help

    Please repost your question in the section group of Office documents Word to: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.word.docmanagement&lang=en&cr=US where issues of speech specialists will be more than happy to help you with your problem.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • where should I put the code to make a sensitive BC site

    Where should I put the following code to make my current sites of BC 'Sensitive' for the forthcoming update of the Google algorithm.

    link rel = "stylesheet" type = "text/css" href="/css/{system_visitorDeviceClass}.css

    Thank you

    Hey there,

    It doesn't really work like that.

    Receptive happens by CSS, Yes, but you can do it simply with queriers media CSS. You just pasted here partial html to an element of the stylesheet - that would go in head code in templates. But that is all down to the site and the installation program. Some people do not use models BC and have all file flat, others may have includes or supports for the content of the content header.

    You should also read the google algorithm code and that means properly. Half understand this kind of thing creates all the incorrect myths about SEO and ranking.

  • Objects added to the Sprite/MC are not

    Hello everyone, I worked on a construction set and met a strange problem this morning, when instead of adding objects directly to the step that I had to add a Sprite (I also tried with a MovieClip) on the stage instead and they do not seem to. If anyone can see why this is happening, I will be eternally grateful, because it has left me speechless! And Yes, before anyone says, the MC/Sprite I add objects to a certainly added to the stage, I've made this mistake before and do not rely on what actually once again

    I essentially built the game levels using various different objects (rectangles, circles, etc.), built in the attached with sprites and Box2D physics engine to represent the user. During the creation of each of these object I provide a DisplayObjectContainer in which the sprite that represents the object should be placed. So far I've been simply supply my class of basic game as DisplayObjectContainer, with no problems whatsoever - everything is displayed properly. A new level design, however, it will take apply me a mask to the level (but not the GUI) so I decided to put all the objects level within a MovieClip or Sprite instead. I created the new sprite as such:

    levelObjects = new Sprite();
    levelObjects.x = levelObjects.y = 0; In order to ensure
    levelObjects.width = GameProperties.stageWidth;
    levelObjects.height = GameProperties.stageHeight;
    levelObjects.visible = true; In order to ensure
    addChild (levelObjects)

    and have provided this sprite for level objects like a DisplayObjectContainer instead of the base class. Everything is added to the stage that I can click on things and sounds associated with the objects game play correctly, but nothing is actually visible! As I mentioned above, I tried this using a MovieClip instead but got the same result. Anyone has an idea why this is happening and how I can fix this problem? Thank you for posting anything that might help, I have tried everything I can think so now I'm going to rack your brain rather haha

    Thanks in advance,

    Dinkyfish

    Cannot set the width and height of an empty object properties... I mean you can, but it will not work and curiously has an effect of making things do not appear.

  • sum of the sprites in sprite

    Newbie here.  Writing a Manager to add the number of sprites to a cast member located within the boundaries of another sprite.  Thank you.

    I would do it with a kind of system of legend.  There is a global variable, we'll call it gTotal, which stores the actual number of sprites in one another.  Make a #movie like this script:

    global gTotal

    on getNumWithin vSpriteNum
    Direct = .rect sprite (vSpriteNum)
    gTotal = 0
    sendAllSprites (#AreYouWithin, iRect)
    end

    Then put behavior on sprites which are mobile (i.e. those that could be within the other sprite)

    global gTotal

    on AreYouWithin me, vRect
    If sprite (me.spriteNum).rect.union (vRect) = vRect then
    gTotal = gTotal + 1
    end if
    end

    Now, all you need to do is use the command:

    getNumWithin (spriteNameOrNum)

    and check the value of gTotal.  So basically, if you check to see how many sprites are within the limits of the sprite in channel 10, you would call:

    getNumWithin (10)

    put gTotal

    and gTotal would have the correct number of sprites.  If you name your sprites (Director 10 and above), you can use the name of the sprite instead of the number of the sprite.

  • Confused about the extension of the Sprite class

    Howdy-

    I learn programming with object oriented ActionScript and am confused about the class Sprite and OO in general.

    My understanding is that the Sprite class allows you to group a set of objects that you can manipulate all the objects at the same time.

    I explored the Open Flash Chart code and note that the main class extends the Sprite class:

    Base/public class extends Sprite {}

    What this lets you do?

    Also, on a related note, how to draw, say, a line once I extended?

    Without extend Sprite I could write:

    var graphContainer:Sprite = new Sprite();

    var newLine:Graphics = graphContainer.graphics;

    ...

    And it works very well. Once I have extend the Sprite class, I'm lost. How can I modify this code so that it still draws a line? I tried:

    var newLine:Graphics = this.graphics;

    My understanding is that since I extend the Sprite class, I should still be able to call its method chart (or property? I have no idea). But, he screams at me, saying "1046: Type was not found or is not a constant of compilation: graphs.»

    A number of things.

    First of all, I would not use this approach in your table constructor. Setting the width and height only makes sense if you adjust the width and height of the existing content, and the table (Sprite) does not at this time here. If you want to give the table a 'size', you could do it like this:

    public function Chart (width: Number, height: Number) {}
    This.Width = width;
    This.Height = height;
    put in a background invisible to this size:
    this.graphics.beginFill (0,0);
    this.graphics.drawRect (0,0,width,height);
    }

    There are other ways, including putting in a form or a Sprite of child as a child for the background so that clear will not erase the background of the chart. This way you could have properties for the background in your table class and update the background as a child DisplayObject instance... a few ideas to think to...

    Then, after that, your chart should be functional...

    Then back in your scenario, you could do this:

    import graphics. Table;

    Stop()

    var myNewChart:Chart = new Chart (300,200)
    myNewChart.render ();
    addChild (myNewChart)

  • Put the iMac to sleep

    How I can put the iMac to sleep automatically after a certain time. I don't have this option in energy saver (only display option appears).

    In, click the Schedule energy-saving.

  • I NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he try to put the itunes thing but

    NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls

    Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.

  • How put the icons on my phone

    How put the icons on my phone?

    It is not quite clear what you mean. It seems that if you say that you are missing some applications. You should be able to go to the App Store and re - download free of charge as long as you are connected to the same Apple ID when you bought them.

    If you find not just icons, you can reset your screen at the disposal of the plant by going to settings > general > reset > reset Homescreen layout.

    If you mean something else, please explain. Feel free to use the language as your most comfortable.

  • How to put the "counting" effect as a video in the background of another video play WITHOUT him covering the original video?

    If you got confused of what I said, I'm basically saying that I put the color to count the white text, but the white color will cover up to another video I play there not "transparent" color? Thank you!!

    How is this created "count"? With the help of a generator of FCP X? Or is it a separate video that you created?

    If it's a separate video, you need make the background transparent and must be exported in a codec that supports alpha channels - it would be ProRes 4444.

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • What can I put the RAM and the hard drive of a Macbook Pro 13 "2014 in a Macbook Pro 13" 2016?

    The main logic of my Macbook Pro 13 "2014 card is broken, and it turns out that it will be much easier and just slightly more expensive, buying a new Macbook Pro that, in order to replace. I would like to set up my new Macbook Pro 13 "online in a way such that it is as cheap as possible, while always respecting the level of my former. So, if I could order one with the minimum of RAM and disk space hard and then put these pieces of my old in the new, this would be ideal. I don't know so much about it, and the question is: is it possible?

    my old Mackbook Pro 13 ":"

    -purchased new August 2014

    -3.0 GHz dual-core Intel Core i7, Turbo Boost up to 3.5

    -DDR3L 16 GB 1600 MHz SDRAM

    -Storage flash 512 GB PCIe

    -Intel Iris graphics card

    I'll get to buy e new generation Mackbook Pro 13 "with:"

    -2.9 GHz i5 or i7 3.1 (I've not yet decided)

    -RAM: Here I want to configure it with as little as possible, if I can just put the chips of the old in the new. Is this possible?

    -Hard drive: same thing: if possible, I want to get the cheapest option and simply put the old in the new. Possible?

    Thank you in advance to anyone who might take a few minutes to help out me! It would be much appreciated!

    The RAM is not transferable, and the reader will be not as fast as the original of the newest computer; In addition, change it the warranty of the news of the computer.

    (143318)

  • On my old e-mail account I could insert a list of addresses by putting the list name in the to: my new email account will not accept the list names. How can I fix th

    My old Thunderbird e-mail account has been with Time Warner,
    SC. RR.com. my new second account) is with AT & T, ATT.net.

    In my old account I could give a name to a list of multiple e-mail accounts, put the name of lists at the BBC: and send email to everyone on the list.
    My new account will not accept the name of a list. He insists on the format of a single e-mail account. I tried to create a new list after closing the old account and open the new one, but the results were the same.

    How to make 'list' to work on my new ATT account?

    I'm glad to hear that your problem has been resolved, please select the answer that solved the problem. This will help other users with similar problems more easily find the solution.

    Please contact the Mozilla Support!

Maybe you are looking for

  • How can I configure Firefox to automatically zoom when a site regularly?

    Some sites have a fixed width, and I like to zoom in some of them so that I can read the text better. How can I configure Firefox automatically zoom-in in some of the sites that I visit regularly?

  • Boots Vista black screen with white cursor and nothing else (Black Screen of Death)

    After a download from Microsoft update last week, my system has rebooted. He first had a screen blue error, rebooted, reported a disk error and automatically run CHKDSK. Since then, the system has started a black with white slider screen and nothing

  • Cannot access the downloads folder

    I could not access my folder for downloads from yesterday. When I try to open it, I get a message saying:"there is no location: C:/users/me/downloads is not accessible." The file or directory is corrupted and unreadable. »I don't know what I have hur

  • W520 support port multiplier, how?

    Hello world I have a Thermaltake BlacX Duet, which connects to the e-sata and allows you to have two discs.  The condition sine qua non is that your sata should support port multiplier.   I thought that the QM67 supported port multiplier.    I am cur

  • Emoticons of blackBerry Smartphones

    Lately, I have been unable to use emoticons in text messaging - when I click on the emoticon icon I just get a screen with empty boxes instead of emoticons Carol