Professional :: Get The Accelorometer To Simply Flip The Main Characters Image
Jun 30, 2011
I am developing an ios app, and it is a simple platformer game. I have a 2dimensional sprite that sits in the center of the stage, and never moves.. When the accelorometer is tilted, the stage moves around the main Character, but only horizontally.. How can I get the accelorometer to simply flip the main characters image, so that he faces where he appears to be heading? Again, this game is for the iPhone/iPod platform, so anybody with knolege of coding is greatly needed to explain this to me. This is a simple code I used for moving the stage around the Character
I've been unable to locate and have used other forums and have been unable to recieve assistance doing what I want, and the funny part is, what I am trying to do seems like it would be sooo simple. I'm trying to use an xml file to load a series of images into a movie clip. here is how the stage is setup:
MAIN STAGE -> MOVIE CLIP -> SCROLL PANE -> MOVIE CLIP
The one in bold is where the images need to be loaded, the setup looks something like this: The red outlined white box is where the pictures need to end up, it is a movie clip inside a scroll pane so that the images can scroll. There is no captions, no clicking, no anything, just images that need to sit one above the other. The scroll pane is named apparelcontentbox and the movie clip within the pane is need apparelcontent.
I have my entire site layout in Flash CS4 and using AS3. I was able to successfully segment the site with labels, add UI Loaders to desired sections to make the site smaller and work faster, I was able to put a close button above the UI Loader, which closes it and brings a user back to a designated section of the site.
And then I encountered a problem. I have a few images in each UI Loader which I would like to function as buttons and also bring the user to the desired section on the main site, however it seems to be a problem that the buttons are located inside the UI Loader I can not figure out how to jump out of the loader to the main site.
Is there a specific code for it or the whole layout has to be somehow restructured?
study about multiple 3d flip based on[URL]..i don't have any errors for now but my problem is this. the top & the bottom movie clip rotates different from the middle, i look for the solution and i found about Flash CS4 - Vanishing Point, my vanishing point is on the center, but when i change my vanishing point to top, my middle movie clip change its rotation.
I see a bunch of Coverflow clones done in flash but I was wondering if there was a simple method to rotating a flat image in flash but to still give it the effect of depth like the images that seem to be on an angle. I imagine you have to use bitmapdata but im not even sure where to start. flipping it on the _xscale just isn't going to cut it.
I would like to know how to do the image flip effect featured on this site:[URL] Things I noticed: the images fade to white a little between flips. The flips are contained within a clear but drop-shadowed rectangular container. The images have a very flexible quality to them, bending kind of like a sheet in the wind. The flipping isnt prompted by anything, it just plays in a loop and the images are randomized.I decompiled the flash but was not able to find anything of use; the flipping images just appear as blue boxes in my window. I suspect these flipping images are really individual flash pieces embedded into the main flash doc?
It's like poker. I'll need to turn the cards to reveal the other side. Is there a way to make this using actionscript? Remember that in one side there is a vector drawing!
anyone know if actionscript can do this kind of effect ? any similar tutorial i can find? or i can modify from market existing third party software? [URL]..
I know I can horizontally flip an image using ActionScript Code: image.scaleX *= 1;
However, this seems to move the left border of the image past its x coordinate.
I would like to make sure that the image stays within the same borders as before and that (x,y) is still the top left corner. Short of wrapping it in another image, is there a way to do that?
does anyone know of a tutorial the will give a similar effect to what can be seen at http:[url]....the only thing is i dont want the page flip to look like it is a book but for it to look like a flip chart gettin pages removed.it also needs to display small video clips as well as images. would the last part be possible.the files do not have to passed from an xml file or streamed from the server this will only ever be played locally from a laptop.
Is it easy to adapt the Actionscript so that you can get multiple flips? i.e., so that you can flip the card several times and get a different image each time? Here is the code for two times flip and implement this. now i plan to move little bit forward to implement to flip the card several times.
[URL] I was Wondering if there is any code that can flip the image Horizontally when movement travels to the right and of course flip it back when it travels left.
Does anyone know of a light flip class to flip a movieclip that is animated? Away3D is overkill for this project since this simple flip is the only 3D effect needed.
creating a flip-book in flash (using AS3) . I've looked at the other flip-book programs and editors out there, and none really give the customization that my company wants.I have something working, but the page scoping seems to be off. The pages will turn back and forward with a button click but they flip out of order. However, it all runs fine with no error when the user clicks on the pages themselves. This is the code from the main timeline (where I'm getting an error).
I want to have 8 cards on the stage, each card represents an animal and if you click on that card, it will flip over and zoom to fill the screen. When it flips over it will give a fun fact about that animal and in the lower right corner it wil have a 'close' button to bring you back to the stage where the other cards are.
in the "Interactive 3D Video Flip" tutorial i take the cod and applied to my stuff I noticed that when the page was rotated the Flash player consume 40-50% from my CPU , how it's possible? the animation it's finish but the CPU it's 40-50% used . tested in mozilla and IE and from Flash ( when i test the movie) Pentium 4 and athlon 64 X2 tested!!!.. windows 7 last version of flash player 10.045.
i have a movie that has a next button on it that if clicked its going to flip/rotate and play the other movie,, here another problem if i click the next button it flip but the second movie clip is keep on pausing and playing how can i fix this?
I'm trying to make a basic card game where I can flip the cards and also drag them around. Here's the code for card.as, the file that's controlling my cards.
package{ import flash.display.MovieClip; import flash.events.MouseEvent; public class Card extends MovieClip { private var _type:*; public function Card() { this.buttonMode = true; this.addEventListener(MouseEvent.CLICK, onClick); } private function onClick(event:MouseEvent):void { this.play(); } public function setType(type:*):void { _type = type; loader_mc.addChild(_type); }}}
I've been trying to add draggability to the card, but I'm not sure how to do it. Do I need a separate ".as" file to control it? Or, do I build it right into this file? If so, how would I do that? I tried making a separate ".as" file but then my basic card flipping code doesn't work.
I'm building a retro airport scene and would like a marquee that reacts like a flip clock: [img] [URL] In theory, when the user clicks on the "Arrivals/Departures" screen, the entire screen turns into this flip clock-looknig screen and all the letters and numbers form when the machine gets to their letter. The entire animation will only last a couple of seconds, so the user is not waiting on the computer to deliver all the information, but the different letters take different amounts of time to load depending on where they are in the alphabet.
In my flash file, I embedded a .swf (different page flip from my previous posts) that loads when "Clothes" button is clicked in the flash file.
When I navigate away from this page, it unloads. However, when i click on "Clothes" again with the .swf, the page flip won't load. [URL] To load the pageflip (under "Clothes"), I'm using:
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("magazine_flip.swf"); myLoader.x = -300; myLoader.y = -165; myLoader.load(url); myLoader.unload(); To unload (for all other buttons), I have: myLoader.unload();
I want to perform a card flip animation, but don't know how to get pictures on BOTH sides of the card - I can flip it, but how do I group the two images to one card?