Solved

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

Posted on 2003-11-08
8
183 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SWF won't scale? 4 518
Download slideshow or picture elements 16 417
High definition conversion videos in YouTube 12 270
Play RTMP without Flash 3 283
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now