How to make a 2nd player in this racing game.
I'm using this tutorial to learn how to make games in Flash for a class, but it doesn't say how to make a 2nd player.
If somebody can show me the code to make alternative controls (W,S,A,D) for a 2nd car that'd be fantastic!
Thanks a lot,
Dd
http://www.emanueleferonato.com/2007/05/15/create-a-flash-racing-game-tutorial/
if (_root["car"+who].code == "player") {
if (Key.isDown(Key.DOWN)) {
this["speed"+who] -= _root.backSpeed;
//steer left - well, we could simply add or subtract a fixed angle (in degrees) to/from the car's rotation, but that's not good enough. In order to simulate a natural movement, steering must depend on speed, otherwise you will be able to rotate your car even if it's almost stopped and it will look like a propeller
if (Key.isDown(Key.LEFT) && this["speed"+who]>0.3) {
_root["car"+who]._rotation -= _root.rotationStep*(this["speed"+who]/_root.maxSpeed);
//steer right - you already know what happens here
if (Key.isDown(Key.RIGHT) && this["speed"+who]>0.3) {
_root["car"+who]._rotation += _root.rotationStep*(this["speed"+who]/_root.maxSpeed);
You basically have to make a second conditional clause that starts:
if (_root["car"+who].code == "player2") {
if (Key.isDown(/*Insert KeyCodeValue of the Key you want to use*/)) {....
The AS2 keycodes can be found here:
http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001136.html
Similar Messages
-
This is how to make a 2nd set of recovery disks.
Recovery disk creation only allows you to make 1 set.This is how to make a 2nd set of recovery disks. should you mess up the 1st time doing them, purchased a used notebook and the owner didnt supply you with them, if you loose them or they get damaged. 1) Delete the file RMCStatus.bin (hidden) from two places: C:\Program Files(x86)\Hewlett-Packard\Recovery Manager\ The root of a drive D:\ (RECOVERY partition) 2) Remove Rebecca.dat ( hidden) from:C:\Windows\System32\ Follow the instructions here:HP Recovery Disk/USB Creation Instructions Show Hidden Files and Folders:
W8 users,,,,,,
In order to find the files to be deleted, you must change your folder options to show hidden files and drives. Type folder options in search to bring it up.Can not locate these two files: 1) Delete the file RMCStatus.bin (hidden) from two places: C:\Program Files(x86)\Hewlett-Packard\Recovery Manager\
2) Remove Rebecca.dat ( hidden) from:C:\Windows\System32\
What to do any help? Uses HP pavilion 17 -
How to make adobe flash player content on websites run on safari browser of my ipad?
How to make adobe flash player content on websites run on safari browser of my ipad?do I have to install adobe flash player on my ipad ?
The flash add-on is not available for Safari on iOS. Never has been and in fact Adobe has ceased support for flash for mobile devices in general. Your options, depending on the specific sites:
See if the site or sites in question have their own apps availabel in teh app store
Look into some browsers such as Puffin adn iSwifter (there are others, I beleive). These browsers use a third server site to translate the flsh content into a form that the iPAd can use and restreams them to you. They may not work with all content.
Use a computer capable of running flash.
Seek a source of the conent that is designed for non flash use. -
My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?
I was having the same problem, I backed up my phone and then updated to iOS 5 and then it kept telling me it could not restore from my backup as it had failed. After reading a bunch of forums and posts and trying everything, I did manage to get it to work. I had tried the Time zone, creating a new computer user account, disabling anti-virus, etc.
It took a combination of things, one of which was disabling the anti-virus completely and copying the contents of the backup folder to my desktop and then deleting everything in the backup folder. Then I rebooted the PC, entirely disabled the anti-virus, copied the one backup I wanted to restore from the desktop to the backup folder and then trying to restore. Low and behold the phone said restoring from backup and I am back in business, so when in doubt, trying combining some of the fixes together. -
How to make Adobe Media Player work online?
Hello,
I have Adobe Media Player. When I launched before, I was able to see the content. Nowadays, it showing just blank screen saying "You must be online to view this content" Although JavaScripts already enabled on my safari web browser and my personal firewall is On.
p.s firewall was always On When I was able to see adobe media player content!
I would like to know if anyone tell me how to make it online?
Thank you.The flash add-on is not available for Safari on iOS. Never has been and in fact Adobe has ceased support for flash for mobile devices in general. Your options, depending on the specific sites:
See if the site or sites in question have their own apps availabel in teh app store
Look into some browsers such as Puffin adn iSwifter (there are others, I beleive). These browsers use a third server site to translate the flsh content into a form that the iPAd can use and restreams them to you. They may not work with all content.
Use a computer capable of running flash.
Seek a source of the conent that is designed for non flash use. -
How to make Adobe Flash Player run faster
how do you make adobe flash player run faster my child has a game and the game is running to slow to play/use some of the features
please please helpWelcome to our community
I see this is your first post here. I'm guessing that you aren't using Adobe Captivate.
I'm unsure exactly how you managed to end up posting your question here, but you seem to lost and unsure exactly where to post.This forum is where we help one another with the Adobe Captivate product.
Click the link below to visit the main forums landing page. From there, you will either click an icon or click a drop-down list where you may choose from a gob of different forums. I'm guessing you want the forum for Flash Player.
Click here to view
Cheers... Rick -
How to make a clipping mask in this particular case?
Okay, Just to begin I know how to make a clipping mask, but for the case that I'm going to present right now I just can't figure out what mistake I am doing (if any). However I am a beginner.
http://vector.tutsplus.com/tutorials/illustration/how-to-create-a-medieval-paper-scroll/
In the link to above tutorial on how to make a medieval scrol I'm stuck at step 25 and would be glad to anyone who helped.
As said in step 25 that expand the appearance of the scroll and select the two then clip the mask. In th above picture I have just selected the scroll to show how it looks.
Now as you can see in the image below I have expanded the appearance of the paper scroll. Then I selected the paper scrol and the yellowish green grunge background placed below it. And the moment I hit Ctrl+7 (in windows) or Command+7 (in Mac) to make a clipping mask the error that showed up has been highlighted.
One more thing, I have clipped masks before too in the same tutorial given above but I don't know what has gone wrong for me in this step.
Please help.
Signed,
Awais RaufWhy would you want a clipping mask? I don’t see a reason for it.
However, for what you want I would use the Pathfinder panel to combine all the paths into one shape. First use the ungroup and release compound commands a few times each, to make sure you have nothing grouped. Then press the top left button in the Pathfinder p[panel. This should produce one closed path that just surrounds the scroll. -
How to make Adobe Flash Player the default player for .flv, .f4v files?
I have currently installed from Adobe the following applications:
Adobe Bridge CS6 (64bit)
Adobe Bridge CS6
Adobe Dreamweaver CS6
Adobe Encore CS6
Adobe ExtendScript Toolkit CS6
Adobe Extension Manager CS6
Adobe Fireworks CS6
Adobe Flash Professional CS6
Adobe Illustrator CS6 (64bit)
Adobe InDesign CS6
Adobe Media Encoder CS6
Adobe Photoshop CS6 (64bit)
Adobe Prelude CS6
Adobe Premiere Pro CS6
Adobe SpeedGrade CS6
Adobe Flash Builder is not installed.
Adobe Premiere After Effects is not installed.
I've just downloaded Adobe Flash Player 13, but .flv files and .f4v files are not played by Adobe Flash Player. I've tried to make it default player but i didn't release which file .exe to browse for (by right-clicking and choosing Open with > Choose default program...).There's a Flash Player Projector (standalone) in the Flash Professional CS6/Players folder, but it's usually outdated.
When browsing to an app to use from the Properties window, go there, but... download this one: Windows Flash Player 13 Projector and replace the Flash Player that's in that folder.
If you're looking to test Flash files you've authored, then you'll need the Projector, but if you're just looking for a good player for FLV and F4V, then you should use VLC Media Player. http://www.videolan.org/ -
How to make adobe flash player always on in the firefox?
I have a desktop pc with OS windows 7. I used daily firefox about 7 hours and more. Everytime i open firefox and go for the search page like youtube and videos sites an authorization noticed me to confirm to Allow adobe flash player. And also open a new tab and go the video sites also asks the same everytime i switced allow to adobe flash player to works. How i resolve this problem. And how to switch always adobe flash player to be on.
Your Shockwave Flash plugin probably is set to "Ask to Activate" (which means, click to play). You could try switching it to "Always Activate" on the Add-ons page. Either:
* Ctrl+Shift+a
* orange Firefox button (or Tools menu) > Add-ons
In the left column, click Plugins.
If Firefox only offers the options of "Ask to Activate" and "Never Activate" then most likely the version you have is on the "block list." This is a regularly updated list of add-ons that are either out-of-date or malicious. If you can approve the plugin to run as needed, then it is a "soft block" that eventually will turn into a hard block where you will not be able to enable it at all.
I realize Flash 11.3 and higher can create a lot of problems in Firefox. Most of these are due to the protected mode feature. If you eventually have to update, the following pages provide different ways to disable the feature:
* Adobe support article under the heading "Last Resort": [http://forums.adobe.com/message/4468493#TemporaryWorkaround Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]
* Manual steps: https://support.mozilla.org/questions/968190?page=5#answer-509209
* Batch file to automate the manual steps: https://support.mozilla.org/questions/982093#answer-518078 -
How to make an Mp3 player, with some neat looks?
Hey guys,
I need to make an mp3 player, with some nice looks.
Please help!maybe try this
http://jplayer.org/ -
How to make a key out of this data?
Since no one replied to my last post, I'll give it another try. From an RTSP server I get two values, a key called rsaaeskey (342 bytes, without the line breaks):
yxKBocBgTii20n9nbKfYGyGhPqtosXuq8M99yU5/PzTVNmIUsUGlpD27u
cqN8eNFvmaO7cFVXeaMGaCfI5V+YNrd77xGQ+CUE0XFraXUvp4cF4aX1L
ZOGe38nwX3Ba+4bQFfjmYgz3ObRuOWlw9KCi4CMP5574F+CIvutVAwtAC
PiDFF7nVcoaBTr2QbSUile0Zs3Hyxjn9PWVaey9Nu2DgJZ8rtw6F2SkQ7
NDHBjjUKXNIeCAeBFuV4XNiazvi3gWa4VbgITtD9jcm+7nPMAK0oBL1S3
K3Z6FK7XVnfehYYJjRw7THMZzSvq7FtLB9QgulqQTJ3awJdwS0ACb1FkAand an initialization vector called aesiv (22 bytes):
zcZmAZtqh7uGcEwPXk0QeAThe data is obviously Base64 encoded. However, after decoding I don't know how to make a key out of it. Trying KeyFactory's generatePublic and generatePrivate methods result in an InvalidKeySpecException with any algorithm I've tried (RSA, DSA, DH).
I think this is a multi-prime RAS secret key (someone said they're 342 bytes long), but how do I generate a Java Key out of it?The rsaaeskey, decoded to binary, is a binary array of 256 bytes. Using the DUMPASN1 tool we see that the bytes are not in ASN.1 BER or DER encoding.
C> openssl enc -base64 -d -in rsaaeskey.base64 -out test.bin
C> dumpasn1 rsaaeskey.bin
0 CB 18: [PRIVATE 11]
: 81 A1 C0 60 4E 28 B6 D2 7F 67 6C A7 D8 1B 21 A1
: 3E ABIf it were encoded in ASN.1 BER or DER encoding it will start as a "SEQUENCE" or a "SET", not as an unrecognized data.
You need to check the exact specification of the protocol. (Are you using TSP - RFC 3161, or RTSP - RFC 2326?) -
How to make a keyboard shortcut for this character: ⌘
I am growing very fond of the Character Palette, but there are some characters I like to use allot, and it's becoming a nuisance opening the whole window just to insert a ⌘. I was thinking maybe there is a way to make a keyboard shortcut for this character, just like option-shift-K creates . I opened the keyboard viewer and was thinking maybe I could drag the character into an empty space to create a combo...but it's not letting me. Is there any way to do this?
This is a feature Apple should definitely add customization to on OS X.
You can make custom keyboard layouts that include any characters you want using Ukelele.
http://scripts.sil.org/cms/scripts/page.php?siteid=nrsi&itemid=ukelele
I doubt Apple is going to incorporate this into OS X, but you can suggest it here:
http://www.apple.com/feedback/macosx.html -
I want Firefox as Browser. I've got Yahoo, but wish to delete it. I do not have a menu bar therefore cannot use How to make Firefox etc.
The akamai servers are used by a lot of web servers to store large files (e.g. images and media files)
A domain with fbstatic in it is likely a domain that is used by Facebook (fb), so you may have other problems if you stay on such a web page or get redirected
If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox > Preferences > Privacy > Cookies: "Show Cookies" -
How to make a data set from this???
Hi all,
I have to read an XML file and then display each item on my
page.
Now, I have no problems doing this with simple, one level XML
files like an RSS file for example. But the XML I have to read is a
little different to what I am used to:
quote:
<SearchResult CartNumber="A418 " CartType="M"
StartTime="2008-06-11T14:44:29.323"
EndTime="2008-06-11T14:47:46.15" CartComplete="true" StaticText=""
NextPlayTime="0001-01-01T00:00:00"
GUID="e76df096-139e-4270-a5dc-4a2cf0cddf16">
<CustomProperties>
<CustomProperty PropertyName="iTunesLink"
PropertyValue="" />
<CustomProperty PropertyName="SongHookLink"
PropertyValue="" />
<CustomProperty PropertyName="RingToneLink"
PropertyValue="" />
<CustomProperty PropertyName="AlbumArtLink"
PropertyValue="Stranger In Town Album - Bob Seger.jpg" />
<CustomProperty PropertyName="TicketLink"
PropertyValue="" />
<CustomProperty PropertyName="SongLyricPhrases"
PropertyValue="" />
</CustomProperties>
<MusicData CartNumber="A418" Title="STILL THE SAME"
Artist="BOB SEGER" Length="3:11.0" LengthSeconds="191"
CategoryName="Exile" CategoryCode="X" Note1="." Note2="." />
</SearchResult>
You can see it has multiple levels for each search result.
Can someone help me work out how I would display the results
on a page, repeating. (There will be 5 of these 'SearchResult'
items.
Again, I am fine with single level XML.. but as you can see..
this one has Custom properties which is a level deep, then all the
MusicData in one bit..
Any help is greatly appreciated.
Kind Regards
ScottHi Scott,
I'm beggining to understand a bit better what it is you want
to display, and I realize you're still a bit confused as to what
Spry actually does to the XML.
If you call {data::@iTunesLink} on the HTML, according to the
definition of the "data" dataset, Spry will lookup an attribute
name iTunesLink on the following XPath:
"SearchResults/SearchResult/CustomProperties/CustomProperty". The
problem is, that attribute does not exist on your XML.
Valid calls would include {data::@PropertyName} and
{data::@PropertyValue} and would yield, respectively, "iTunesLink"
and "
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
as an example first result (considering there is no "repeat" set).
Does that make sense to you?
If I've interpreted your XML correctly, I think you are
making an assumption that Spry understands that PropertyName and
PropertyValue are related. It does not make that assumption, and it
shouldn't - they are completely different things in your XML, they
just happen to be attributes for the same tag ("CustomProperty").
Why don't you try to trim down your XML to something more
straightforward like this:
<CustomProperties>
<iTunesLink value="
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
/>
<SongHookLink value="" />
<RingToneLink value="" />
<AlbumArtLink value="Eyes Open Album - Snow Patrol.jpg"
/>
<TicketLink value="" />
<SongLyricPhrases value="" />
</CustomProperties>
Then use subpaths instead of NestedXML (better for your kind
of XML), and call the attributes like this (placeholder >>
yield):
{iTunesLink/@value} >>
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101
{SongHookLink/@value} >> yields blank
{RingToneLink/@value} >> yields blank
{AlbumArtLink/@value} >> Eyes Open Album - Snow
Patrol.jpg
You get the picture...
Unless there is a reason to use that particular structure on
the XML, I recommend you streamline it...
Give it a shot and then come back again when you hit the next
obstacle.
Regards,
Tomas -
How To Make My Photo Look Like This?
I was really inspired by a music video on Youtube. (Ellie Goulding - Goodness Gracious - YouTube) Very nice effects and all so I tried to make one of my photo like the photos above. I tried Neon Glow Filter but it doesn't really seem like these photos above.
How do I give my photo this kind of effect? And what to call this effect? Would you give me any advises? Thank you!Experiment with changing a layer's influence on your image with the "blend if" sliders in the layers blending options. (drag the sliders, alt-click to separate the sliders and make smooth transitions). the green image in your example, could be as simple as adding a plain layer with a blue-to-green gradient and changing the "blend if:grey" to only show in the darkest shadow colours of the image underneath.
Maybe you are looking for
-
Report for pending shipments, PGI and Picking
Hi All, We have few issues with the orders not being picked, if picked some are not being able to PGI and few are not going to the Shipments process. this is creating a backlog. I was wondering if we have any Report or transaction where i can check o
-
Updated iPad 1 to IOS 5. When trying to restore my iPad from my backup it gets half way through and the iPad reboots and iTunes says "An error occurred while restoring this iPad (-1)" I have tried to restore my contacts and company data at least 20 t
-
IPad 2 Wifi problem with DLink Router
Hello. I have an iPad 2 which was working fine with my DLink DW113 WiFi router. of late however, the iPad is horrendously slow, reminding me of old dial up connections. the router works fine on my wife's iPad Air. It works fine on my iPhone 6. i Have
-
program working fine in for ground but giving error while processing in back gorund Error occurred while loading internal tables T_FILE1 Error GD079
-
I'm using iSight with OS 10.4.3 on a G5 iMac and iChat. Every other day or so I find that my buddy list shows for me only the audio symbol, not the video camera. The solution is to unplug the iSight and plug it back in -- then it works fine for a day