Solved

video game problem. I cant get charector to move.!

Posted on 2003-11-08
8
186 Views
Last Modified: 2010-04-03
I cant seem to get a charector on my game to move forward or backwards but I got it to be able to jump.

here is the source code. could anybody help get it to work?

http://webpages.comnetservices.com/nsf2.zip
0
Comment
Question by:virtex
  • 4
  • 4
8 Comments
 
LVL 5

Accepted Solution

by:
Calron earned 240 total points
ID: 9712921
Could you point me to the code where you are trying to get the character to move?
This fla is huge and there's quite a lot of code and I don't want to go through it all.
0
 
LVL 1

Author Comment

by:virtex
ID: 9713874
alllow me to explain. I was browsing thru my archives that I had and found a .swf that was created ages ago. I decided to give it to a friend who said that they could reverse it so to speak and give me back the source code. I then took it and noticed that my charector doesnt walk right or left. just up and down.. Its been ages and I doubt I can find the original source code anywhere but believe that it might just be a few tweaks of code imho.  I noticed that the computer can walk lef tand right without a problem. since this was the case I figured it has to do with the actionscript.

enclosed below is the ctionscript areas where the code is used to control hte player and the computer.
Please look over it and see if you can find anything possibly wrong with it.

Thanks alot.

http://webpages.comnetservices.com/allcodeforwalking.zip

btw. I will raise it each day to its max til it is as high as I can get it. Thanks alot!!!
0
 
LVL 5

Expert Comment

by:Calron
ID: 9714107
I suspect that you are trying to use the file in Flash MX 2004 where you wrote it originally in an older version of flash. The problem I found there is that in your code you check for:

key.isDown(37)

Flash MX 2004 is case sensitive so what you have to change is all the times that key (with small k) appears and change it to Key  (captial K). Changing that I was able to move back and forth.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:virtex
ID: 9717910
thnx alot and yea you are right I am doing it in 2004. I keep forgetting that and wish O remembered that. I am usd to the old syntex and not this new one.
0
 
LVL 5

Expert Comment

by:Calron
ID: 9718497
It takes a bit of getting used to but if you come from another programming language like java (where I come from) the new syntax is a lot nicer than the old one.
0
 
LVL 1

Author Comment

by:virtex
ID: 9718564
Well this is the thing. I am used to the old flash and not the new one. I do alot of programming in delphi/pascal and am used to its syntex more than anything(each first letter == Cap normally) and this is kinda confusing to me. Like with GotoandStop(now its gotoAndStop) small things like that throw me off.

thanks alot for yourhelp!
0
 
LVL 1

Author Comment

by:virtex
ID: 9718678
hey there cal. how many points would it take for you to go thru all my old scripts and find the flaws that are now present..... please let me know as I have about 10 other ones and I would really appreciate it.
0
 
LVL 5

Expert Comment

by:Calron
ID: 9720525
Well, before you do anything else I would start by compiling a list of the words that are now written in different caps and just globally replace them with the correct syntax.

Though if you are not planning on changing your old fla's you can also publish them in old versions. In the publish settings you can tell flash to use Flash 5 settings. Then you should be able to publish your fla's with them still working eveen if you did not use the correct case in writing.

Try that first ...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question