PDA

View Full Version : Newbie Needs Help, Please Help! :)



lostn notknowin
July 25th, 2004, 06:43 AM
Hey KirupaForum :)
Well, my friends and I have decided it was time to move on from just graphics and time to start making video games! We are working on are first project and we have come to a stuck! Please help!
My question
How do I make http://v4.livegate.net/sao/QUES1.jpg turn into http://v4.livegate.net/sao/QUES2.jpg when I click the RIGHT arrow key? (The second picture is of him walking, because of right now, he is gliding on two feet) (Both pictures enlarged by 40%)

Also, I've tried 200+ times to find a wall collision script that works, and I have not yet been able to find one that works with my game =\
http://v4.livegate.net/sao/JUSTAQUESTION.jpg
If someone possibly could give me the simplest and shortest wall collision script that would be more than appreciated.

Please download attachments if pictures do not show!

Any tries would be more than appreciated! ty :) and those who do help (maximum of 5) will be listed as a "Special Thanks Programmer" (meaning you helped) this game! (sorry no money will be given, for all games will be freeware) (If you would like to be listed as as programmer when you have helped us, Please use your real name.) Just a first name will do (If your concerned about having your identity stolen). If you need the .FLA file in order to help us with our problems, don't hesistate to tell us! Ty!

lostn notknowin
July 25th, 2004, 07:10 AM
Here is a FLA, if someone could download it and edit it to where the character moves from the first position to the 2nd, and fixes it to where there is a wall collision that would be so appreciated and you will be acknowledged for your help!

http://v4.livegate.net/sao/thefla.fla

elPooter
July 25th, 2004, 01:02 PM
Whoa..... Your fla is a little off, so here's something I put together for ya:

lostn notknowin
July 25th, 2004, 09:41 PM
Thanks el pooter, if you want to be listed as a Special Thanks Programmer, please state your first name and an optional last name!

elPooter
July 25th, 2004, 09:46 PM
No credit needed. I just help out :b: .

lostn notknowin
July 25th, 2004, 09:49 PM
Also, I saw the wall collision, but I wasn't able to find the wall collision code, could you possibly copy and paste it?

elPooter
July 25th, 2004, 09:52 PM
sure, here it is:



onClipEvent (enterFrame) {
if (_root.limits.hitTest(getBounds(_root).xMax, _y, true)) {
this._x -= 3;
//this says that he is hitting the wall//
}
if (_root.limits.hitTest(getBounds(_root).xMin, _y, true)) {
this._x += 3;
//this says that he is hitting the wall//
}
}

lostn notknowin
July 25th, 2004, 09:58 PM
ahh thanks man.. its great to see people helpin one another.. the way it should be.. its hard to find those ppl nowadays.. thx!

elPooter
July 25th, 2004, 10:24 PM
Your welcome! :hugegrin: