Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-08
8
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 5

Accepted Solution

by:
Calron earned 960 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

670 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