How to make a 3rd Person Style Camera

Hello,
I am a Java3d Noob and need help with making ViewingPlatform Move. I do not want to use the in-built Keyboard Navigation found in java as I do not like the acceleration, deceleration and speed. The ViewingPlatform should be in third person - that is it is slightly behind the character.
Any simple code or guidance would be greatly appreciated
Thanks in Advance
Mahen.net

Here is a basic switch usage to move something with the keyboard:
stage.addEventListener(KeyboardEvent.KEY_DOWN, move_mc);
function move_mc(event:KeyboardEvent):void {
    switch(event.keyCode)
       case  Keyboard.LEFT : mc.x -= 5
       break;
       case  Keyboard.RIGHT : mc.x += 5
       break;
       case Keyboard.UP : mc.y -= 5
       break;
       case Keyboard.DOWN : mc.y += 5
       break;

Similar Messages

  • How to make a first-person style game with arrow key movement?

    Hey guys, I've made some simple click-to-move 1st person games with AS3, but I just wanted to know if there was a way to move around in 1st person with arrow keys, I was thinking you could get the background to move with the arrow keys, but that would be a little confusing.
    If you guys have any suggestions for me, or if it's possible, please reply! Thanks

    Here is a basic switch usage to move something with the keyboard:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, move_mc);
    function move_mc(event:KeyboardEvent):void {
        switch(event.keyCode)
           case  Keyboard.LEFT : mc.x -= 5
           break;
           case  Keyboard.RIGHT : mc.x += 5
           break;
           case Keyboard.UP : mc.y -= 5
           break;
           case Keyboard.DOWN : mc.y += 5
           break;

  • How to Make a "fonts.css" style sheet

    Hi, I  have a wordpress blog with a stylesheet named “style.css”. I want to change the fonts in the style sheet and so I want to create a separate style sheet named “fonts.css"
    I could just duplicate the ”style.css” page and then rename it “fonts.css” but I believe I read somewhere it is better to create a new style sheet named “fonts.css” and then add my font styles to that. Doens anyone know of a tutorial or how I make the new style sheet and add my fonts?

    I only typically use two stylesheets on any given site, layout.css and styles.css. One is for the overall layout/positioning info of the site and the other is the style information which would include fonts, colors, shadows, transitions, etc.
    If it is better in your mind and for your workflow to create a third stylesheet just for the font values, go for it. To me, fonts are just another style element though, so they stay in my styles.css file.
    There's really no right or wrong to doing it either way. Just make sure you create another link in the head section of your site to the new file if you create fonts.css.
    Thanks jon,
    Yes I agree, I could just change the fonts in “style.css” and then have less style sheets, but the themes developer told me to create a new style sheet named “fonts.css” only because the theme is updated regularly and uploading a new theme will write over the file named “style.css” and then your fonts will default to their original fonts.
    I don't see anything wrong with that approach. Just remember that if you have both styesheets linked to the same page then the page will get it's css styles from the last linked stylesheet.
    So for instance if you have:
    body {
    font-size: 14px ;
    in the style.css
    and
    body {
    font-size: 12px ;
    in the fonts.css
    and the last linked stylesheet was styles.css the page would display 14px text.
    So you just need to get them in the right order IF you have more than one styleshet linked to a page.
    Thanks Osgood,
    Yes that was my other question. So in my uploaded CSS folder I have the original “style.css” file and now my new “fonts.css” file. “style.css” is above the “fonts.css” file and both contain the same information except the file “fonts.css’ has been changed to use different fonts.
    So if I understand you correctly I need to either move the file “fonts.css" above the file “style.css” or delete “style .css” from the CSS folder so the file “fonts.css” will take precedence. Is this correct?
    Also, I needed to open style.php and edit the code to include “fonts.css” which I did.
    I opened "style.php" and then added the code in "red" then uploaded it to the (CSS) folder on the server.
    <?php
    header( "Content-type: text/css" );
    $files = array();
    $files[] = 'style.css';
    $files[] = 'responsive.css';
    $files[] = 'fonts.css';
    foreach($files as $file) :
        $content = @file_get_contents( $file );
        echo minify( $content );
    endforeach;
    function minify( $code ) {
              $code = preg_replace( '#\s+#', ' ', $code );
              $code = preg_replace( '#/\*.*?\*/#s', '', $code );
              $code = str_replace( '; ', ';', $code );
              $code = str_replace( ': ', ':', $code );
              $code = str_replace( ' {', '{', $code );
              $code = str_replace( '{ ', '{', $code );
              $code = str_replace( ', ', ',', $code );
              $code = str_replace( '} ', '}', $code );
              $code = str_replace( ';}', '}', $code );
              return trim( $code );
    ?>
    After doing all of this I still didn’t see any changes to my fonts so I must have done something wrong.
    Any ideas?

  • How to make it look like the camera is following a zig zagging line

    I have an animated video where a person clicks a button and an arrow appears coming out of the right side of the computer. I would like to make it look like the camera follows the arrow as it zooms along a zig zag path and eventually ends at another computer.  Does anyone know of any good tutorials for this? 
    Thanks,
    Paul

    This is just a matter of keyframes for camera position and point of interest.You are probably not going to find a tutorial that exactly matches your project. Try this:
    Open up 2 views, one active camera, one top view.
    Set a position keyframe for the camera where you want the movement to start.
    Drag the point of interest to point at your subject (animated arrow)
    Using the top view and setting the CTI (current time indicator) to the end point of the camera move, move the camera's point of interest  to the same position as the animated arrow
    Still in the top view, move the camera to it's final position
    Using the pen tool (keyboard shortcut g) add points to the camera position path and drag them into a zig zag shape using the top view
    Selecting the Point of interest in the timeline, adjust the position of the point of interest to follow the arrow as it animates across the screen by moving the CTI and setting new positions.
    Another thing you could do would be just to use a lookAt expression for point of interest. This would keep the camera pointed at the arrow.
    Hope this helps. Animating a camera is one of the most basic skills an AE artist should have. It takes a bit of practice but it's not hard.

  • How to make duplicate the para styles

    Hi,
    I have already created some set of styles for journal tempalte [E.g.: jNL,jUNL,...].
    Now I want to create same set of styles but starting with 'b' for book. [E.g.: bNL,bUNL,...].
    How to get duplicate 200 style names, but 'j' has to change 'b'.
    FYI:
    Is this possible by script?
    by
    hasvi

    I would strongly recommend to make organized styles, all depending on each other like a tree.
    So let's say make a basic para style, then create a folder (group) for the first style, depending on the basic. Name the folder J or Journal and the styles List1, List2, etc.
    When this group is complete, duplicate the folder (group) and rename it book. The styles have the same name, but are different in the group. This is easier to handle than to to rename each style.
    I do a similiar thing. I create a complete style sytem with groups and subgroups based on an outside basic style, but in the group is another basic style, this has the language German, when this group is complete, I duplicate it, change the name and change the basic style in the group to English, so I have the very same style name with a different language. In this basic style I adjust also language dependend GREPs, tracking or spaces should be wider in English because it needs less space normally, etc.
    It is easier to work with groups than with renaming the styles, and you get a very similiar result for using it.

  • How to make ROUNDED rectangle default style cp8?

    Hi,
    I want my smart shape style to be rounded rectangle, not squared. I have set up my object styles with color and all that good stuff, but there is no way I can see to make it the rounded shape instead of the squared off shape.  I also tried to change one on the properties panel thinking I could "apply to all" but that option is not available.  I am trying to use smart shapes as my captions in recording and it sure would be nice not to have to touch every single one and change it to rounded - defeats the purpose of styles, yes?
    Using CP8, latest version (I checked and there are no updates available), on a windows machine, 64 bit.
    Thanks!!!
    Kelly

    Rick, that option has effect on the captions inserted while creating a software simulation.
    @LMS_90 About which shapes as Text container are you talking? Object styles for Shapes do not include the 'form' of the shape. And at this moment, you cannot set such a form as being included in the default style, with the one exception that Rick points out: added text during a simulation capture.
    Even for Success/Failure/Hint shapes you cannot define that it always has to be a rounded rectangle. For Question slides, you can set them up in the master slides, and if you use always master slides with placeholders it is also possible. Quite a lot of the default themes have rounded rectangle shapes as text container for Title and Subtitle.
    Also in the Properties the 'form' is not part of the style: if you apply the default Shape Style that includes Stroke, Fill, Character properties, Margins, Shadow...but not the shape itself. That is the reason why 'Apply to all' cannot be used for the shape form.
    This is probably not the answer you expected, I try to change as much as possible in the Master slide.

  • How to make use of the front camera on E71?

    Is there a way to make it useful for something while not on a video call?

    I can't speak for the E71 but some models (like my N8) have the option to capture pictures/video using the front camera so it could be used as a mirror.
    If the E71 has this option open the camera app, press options - "use secondary camera". If the option isn't there then it doesn't have the feature. You may be able to find third party apps that offer the feature by searching google.

  • How to make field in personal setting to optional?

    Hello,
    We want to make this field "Form of address" as optional in the personal settings. The form of address has a drop down for "MR"/ "Mrs" Currently it is mandatory and causes additional unwanted work. We are in SRM 7.0.
    Any help is much appreciated.
    Thanks
    Kartik

    Dear Kartik,
    I'm afraid it is hardcoded Startdard.
    Please check method: /SAPSRM/CL_CH_WD_MOFM_PERSON->/SAPSRM/IF_CLL_MAPPER~UPDATE
    * form of address
        IF ls_cll_person-title_key IS INITIAL.
    * validation error
          CALL METHOD mo_cll_message_handler->add_validation_error
            EXPORTING
              iv_msgno      = 019
              iv_msgid      = '/SAPSRM/CLL'
              ioe_error     = loe_cll_person
              iv_field_name = 'TITLE_KEY'.
          EXIT.
        ENDIF.
    I suppose you need a modification to disable this check...
    Best Regards
    Konstantin

  • How to make single port fowarding  for camera by using airport extreme  ???

    hi
    I have airport extreme model no A1143 (apple)
    when I was using linksys ,I have camera
    I reserve IP local for camera and then by aplication single port foward I put IP local for camera so I would get for the picture or video
    Is any body can help by using apple airport extreme model no A1143
    where should I put the IP local for the camera ?which application
    thanks
    Message was edited by: charlie368

    charlie368, Welcome to the discussion area!
    Using AirPort Utility you can configure the AirPort Extreme base station (AEBS) to forward the port(s) to the camera. However the camera will need to be assigned a local IP address. The default local IP addresses are in the 10.0.1.x range.
    To get to the camera from the internet, you would use the IP address provided by your ISP. This is the one used by the WAN side of the AEBS.

  • How to make an irrelative person able to see the process flow?

    A manager asks his/her secretary to help him/her fill a form,which results that the manager isn't involved in the process.But the manager wants to trace the progress of the process.How should I do?

    You can keep the manager as a notifier in your process flow so that He/She will get e-mail notification .
    You can design a dashboard in VC so that manager can login to VC dashboard to check the status of the request.
    Reagrds, Anil

  • How do you Automatically Copy Images From Camera?

    I would like to create an AppleScript that will run when I plug in my digital camera. Here is what I cannot figure out.
    How to make it run when the camera is plugged in.
    How tow to copy images from camera to a designated folder.
    Thanks!

    You can do all you requested - without 'AppleScript'.
    01. Connect your camera launch 'Image Capture' ('/Applications/' folder - if it does not automatically launch.
    02. Select the 'Image Capture, Preferences...' menu item.
    03. Click on the 'General' tab.
    04. From the 'Camera:' 'When a camera is connected, open:' pop up menu - select the 'Image Capture.app' menu item.
    05. From the 'Devices' menu select your camera from the menu items list. A window will appear with the title of your camera.
    06. From the 'Download To:' pop up menu select where to save the camera's photographs. You can select any folder anywhere on your hard disk drive(s).
    07. Click the 'Options...' button, and from the drop down sheet click on the 'Connection Options' 'Automatically download all items' check box - to add a check mark. There are other options you may have be interested in.
    08. Click on the 'OK' button.
    09. If you want to download the photographs now - click on the window's 'Download All' button. Or, to test the above setting changes - quit 'Image Capture' and disconnect your camera. Then reconnect the camera - and watch the above setting changes take effect.
    Note:
    The above automatic action can also happen if the storage device of the camera were inserted into a USB digital camera card reader. So long as apply the Steps above, and you select the USB digital camera card reader from the 'Devices' menu's menu item list in Step 05 above.
    'Image Capture' is not scriptable; but, may be control-able via 'tell application "System Events" to tell process "Image Capture" ....
    When a camera is connect to the Mac, the storage card of the camera is mounted onto the 'Desktop' and also listed, as an alias, in the (invisible) '/Volumes/' folder.
    Now that you know the name of the storage card ... you can create a 'Folder Action Script' (an example is presented below) and save it into the '/Library/Script/Folder Action Scripts/' folder,
    Open the '/Volumes./' folder (in 'Finder' via 'Go, Go to Folder' - enter '/Volumes/').
    Perform a right button click ('<control> - click, for single button users) on the 'Volumes' folder's window, and select 'Enable Folder Actions' (if not already).
    Rpeat the right button click (<control> click) and select 'Attach a Folder Action...' - selecting your script ('Volumes_FAS.scpt' as shown below).
    Below is a 'Folder Action Script' example - where you will have to substitute 'NO NAME' with the name of your digital camera's storage card's name.
    -- --- Save code as a script with the name 'Volumes_FAS.scpt' --- --
    on adding folder items to this_folder after receiving added_items
    set myStorageCard to "NO NAME" -- The name of my 1 GB stroage card. The name of your card may differ.
    repeat with i in added_items
    tell application "Finder" to set tName to (name of i) as string -- Obtain name of mounted storage card.
    if (tName is equal to myStorageCard) then my handle_card(i) -- If my storage card, continue processing.
    end repeat
    end adding folder items to
    on handlecard(localVolume)
    set folder_Path to ((path to desktop folder from user domain) as string) -- Path to 'Desktop' folder.
    set download_Folder to "NO_NAME Photographs" -- Name of folder to store storage card's items (files and folders).
    -- create download_Folder, if it does not exists.
    tell application "Finder" to if (not (exists folder (folder_Path & download_Folder))) then make new folder at (folder_Path as alias) with properties {name:download_Folder}
    -- Duplicate all the items (files and folders) of the storage device to the '~/Desktop/NO_NAME Photographs' folder.
    tell application "Finder" to duplicate items of local_Volume to (folder_Path & download_Folder) as alias
    end handle_card
    -- --- End of code --- --
    Review 'Finder's dictionary (in 'Script Editor') for the various ways to incorporate 'duplicate ...'.
      Mac OS X (10.4.4)  

  • Can I make a 4 person conference call with an iphone 4S

    How to make a 4 person conference call on an iphone 4S

    Apparently so:
    How to make a 4 person conference call on an iphone 4S

  • How to make a jiggly/bouncy camera

    Hello! i am 15 years old and i am already starting for a "portofolio" (not sure how to say it in english) for my school i want to go next 2 years, i am enjoying adobe products like photoshop and after effects,
    i am right now working on a "kinetic typography" video, but i am wondering how to make a jiggly/bouncing camera like in this video:
    http://www.youtube.com/watch?v=gOa07NIkW7U at about 0:15 to 0:17 and 0:24 to 0:26, (it happens alot in the video)
    Thanks alot!
    -Luke

    These are not generic wiggle or bounce effects. I have a bunch of expressions that I use to add bounce to a move. I think that's what's going on here. They help a lot. I have created a personal library of these custom effects and saved them as animation presets. Lots of them are based on the in and out point of a layer so there's no keyframing involved at all. I just create a text layer, position it where I want it to end up and apply my fly in from the left and drop out preset. I then adjust the in and out point of the layer and I'm ready to move on to the next part.
    Click here for my fly in bounce drop out preset. Save it to your AE User Effects and presets library, and try applying it to a 2 second long text layer. Adjust the look with the sliders. When you build something you like learn how to save it as a preset and you will be well on your way to building a library of tools that will save you a ton of time. I've got more than 200 of these just for motion and the list grows with every project.

  • How to make a personal hotspot ?

    how to make a personal hotspot ?

    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/HT4517
    Use Bluetooth to tether your iPhone, iPod touch, or iPad
    http://www.macworld.com/article/1159258/bluetooth_tethering.html
    How to Connect an iPad to an iPhone Via Bluetooth Tethering
    http://techtips.salon.com/connect-ipad-iphone-via-bluetooth-tethering-25472.html
    You posted in the iPad forum instead of the iPhone forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
     Cheers, Tom

  • N73 how to make the camera MUTE (no click sound)??...

    I want to know how to make the camera without any sound during taking the picture in NOKIA N73 music edition.
    please tell me as soon as possible
    Thank u

    Typical for discussion forum, the experts to give usless advice( ie "try silent mode") folowed by " its a privacy issue".
    I am unable to mute the camera on my E71.  I also assumed it was a legal issue.  Recently a friend of mine, showed me the Iphone 3Gs take a picture silently.  Silent photography with a cell phone is possible.
    This looks like something for a symbian upgrade or even a third party camera app.
    Send your camera upgrade request to Nokia, cross your fingers.

Maybe you are looking for