Posted By
|
Message
|
path
Registered 03/04/2012 20:35:07
Points 288
|
8th August, 2012 at 08/08/2012 22:46:56 -
hey guys, im having trouble trying to perform a method to stop a bouncing ball movement, when colliding with obstacle or backdrop.
can some 1 plz help me or lead in me in the right direction?
also i think its not possible to stop a bouncing ball movement, is there any other way to make another movement for player to get hit and move back? I know theres something like
set x posistion to x("object")+1 but how do i stop the movement then if colliding with backdrop.
Nifty stuff & MFAS :
https://www.mediafire.com/folder/b6f0ex3ozd24c/pub
|
monkeytherat Hero of Time Jr
Registered 07/11/2010
Points 1293
|
9th August, 2012 at 09/08/2012 00:15:42 -
In your events make an event that looks like this:
Object collides with a backdrop
-> stop
You can find stop under the movement when you right click on a square in the event editor.
If this doesn't work for some reason, you can give the object a flag and code like this:
Object collides with a backdrop
->set on flag 1
Is object's flag 1 is on?
-> stop
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.
|
path
Registered 03/04/2012 20:35:07
Points 288
|
9th August, 2012 at 09/08/2012 01:18:54 -
ive tryed this but it doesnt work with the bouncing ball movement i dont think theres a way to actually stop
the bouncing ball movement unless somebody knows a method. theres the bounce command for it, but thats about it and all
that does is reverses the movement. does anybody know another method i can use to push the player back after getting hurt
and stoping the movemement when colliding with backdrop?
Nifty stuff & MFAS :
https://www.mediafire.com/folder/b6f0ex3ozd24c/pub
|
monkeytherat Hero of Time Jr
Registered 07/11/2010
Points 1293
|
9th August, 2012 at 09/08/2012 01:41:45 -
I have a solution here: https://www.dropbox.com/s/bp2rxilfuxa1m7x/Application.mfa
It's kind of ugly and pretty buggy, but it would be a lot easier for you to have control over your objects if you didn't use any of the default movements.
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.
|
path
Registered 03/04/2012 20:35:07
Points 288
|
9th August, 2012 at 09/08/2012 03:08:34 -
thx man, never thought of this.
Nifty stuff & MFAS :
https://www.mediafire.com/folder/b6f0ex3ozd24c/pub
|
monkeytherat Hero of Time Jr
Registered 07/11/2010
Points 1293
|
9th August, 2012 at 09/08/2012 03:28:15 -
No problem. If anyone else has a better solution, please feel free to post it.
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.
|
nim
Registered 17/05/2002
Points 7234
|
9th August, 2012 at 09/08/2012 05:03:41 -
Stop doesn't work on an object that has been launched (i.e. "Launch object at speed 100")
Other than that, Stop works on Bouncing Ball objects. You must be doing something else wrong.
//
|
monkeytherat Hero of Time Jr
Registered 07/11/2010
Points 1293
|
9th August, 2012 at 09/08/2012 05:42:40 -
I'm not sure about path's problem, but whenever I stopped a bouncing ball, it would be embedded in a wall, so I needed to create a loop to bring it out
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.
|
UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
|
9th August, 2012 at 09/08/2012 06:17:26 -
I didn't check your link, but make sure you use "Collided with" and not "Overlap."
The collision detect command should perform the collision position adjustments automatically.
n/a
|
|
|