|
|
Flash 8/actionscript 2, Platform Game (little Help). | ||
Discussion by Chesso with 7 Replies.
Last Update: June 12, 2008, 11:48 pm | |||
![]() |
|
|
http://www.kirupa.com/developer/mx2004/platform_game.htm
I am basically at the point of having the ball/character fall onto the blocks within the ground/platform movie clip, movie left and right, jump up and down etc.
So far this is all very good, except for one very annoying thing lol, which has pretty much halted me from continuing any further (heck I even tried searching google for the lats couple of hours but can't find any relevant hits to my specific case).
If anyone has followed this, understands it's method of play and collision detection or has followed this before will more than likely know my problem, which is:
When the ball/character jumps/falls onto a block, the collision detection is quite random, sometimes it falls a bit too far above, sometimes exact, sometimes inside (I move the balls movie clip point upward so the crosshair was below the image for somewhat better detection).
Does anyone have a solution for this?
I know I could create singular platformed objects and test them individually using the old basic co-ordinate checks, but being able to have multiple platforms of the same type all sitting in the same movie clip and all subject to the exact same collision call is extremely usefull and removes alot of bloated code.
Any help is greatly appreciated!
QUOTE (Chesso)
Hello, I have been following along with the tutorial here:http://www.kirupa.com/developer/mx2004/platform_game.htm
I am basically at the point of having the ball/character fall onto the blocks within the ground/platform movie clip, movie left and right, jump up and down etc.
So far this is all very good, except for one very annoying thing lol, which has pretty much halted me from continuing any further (heck I even tried searching google for the lats couple of hours but can't find any relevant hits to my specific case).
If anyone has followed this, understands it's method of play and collision detection or has followed this before will more than likely know my problem, which is:
When the ball/character jumps/falls onto a block, the collision detection is quite random, sometimes it falls a bit too far above, sometimes exact, sometimes inside (I move the balls movie clip point upward so the crosshair was below the image for somewhat better detection).
Does anyone have a solution for this?
I know I could create singular platformed objects and test them individually using the old basic co-ordinate checks, but being able to have multiple platforms of the same type all sitting in the same movie clip and all subject to the exact same collision call is extremely usefull and removes alot of bloated code.
Any help is greatly appreciated!
Link: view Post: 100609
You should slow down the gravity speed and speed up the fps. To change the frame speed just right click and change the properties.
I'm familiar with Object Pascal/DirectX programming so I'm not new to concept such as frames per second, depth, collision detection, enemy AI etc.
Mostly just grasping how flash and actionscript goes about things.
I pasted the exact code over and over again, but it always had a syntax error.
do I need to get a new flash program?
So what I do is create an if with the calculation, yes, I know it's a bit redundant but it works better than adjusting fps values and such... Here is an example:
If(ourCharacter._x-walkSpeed < 0){
ourCharacter._x=0;
}
It could probably be used in conjunction with hittests... Just a question of trying it out.
Flash 8/actionscript 2, Platform Game (little Help).
Well my conclusion is that it is a glitch. If you notice on the game hes made even that has collision detection problems. Youve made no mistake its just not a very good way to make the game. Soz who made it but it isnt.
-reply by rosssss
Flash 8/actionscript 2, Platform Game (little Help).
Can anybody tell me how to change the path of shared object default path to any D or E drive..
E.G : Default path like
C:Documents and SettingsTempNameApplication DataMacromediaFlash Player#SharedObjectsD8F43EBDlocalhostTempFlash1.Swf
to
D:Sample
Plse reply
Thank you
-question by Harish
Similar Topics:
Flash Or Java
The Best Console Games You 39 ve N...
New Text Based Game Maker
Dream Build Play Competition (0)
|
(0) Need Assisstance With A Game Like Knights Of Nobelmen I'm looking for a php programmer to help
|
HOME 






