The Daily Click ::. Forums ::. Klik Coding Help ::. pmo tricks
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
16th January, 2009 at 01:11:56 -

i was wondering how to do a few different things using the pmo.

first off, how would i make a character bounce back after being hit

second, can the same pmo be assigned to multiple objects?

can the same object be duplicated and use the same pmo?

how can i do wall sliding such as in megaman zero (i have an idea, but not sure)

how would you make it so you can press the down key and jump down off a jump through platform (such as in super smash bros)



 
[Game design makes my brain feel like its gonna explode.]

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
16th January, 2009 at 01:36:49 -

1) just set the current X speed or whatever to *-1 of its current X speed. That'll push the player back at the same speed they were moving at.

2) I'm sure I read a tutorial here on how to do that. Probably to do with spreading values and all that.

3) No. I don't think so since they'd all have collisions at different times. But I haven't tried so maybe!

For the floor trick I'd use collisions with active objects in a group that act the same as backgrounds, but the collision is deactivated if the player is holding down. So that'd be

Player collides with background
OR
Player collides with Group 0+players Y speed is greater than -1 (so the player can pass up through the floor)+down key is not being pressed
= Collision


If you understand my silly psuedo code

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
16th January, 2009 at 02:15:12 -

Siven, Nifflas created this little example not long ago when we were discussing it in Gwerdy Chat:

http://theclickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=118309#Post118309

Multiple enemies can be created all setup with PMO's etc. It's a great little example

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
16th January, 2009 at 02:16:11 -

ok yeah the bounceback made sense
not sure what spreading values is, is it useful?
oh i actually meant the holding on to the edge thing but the floor trick is also something i had forgotten to write down and yeah it made sense

 
[Game design makes my brain feel like its gonna explode.]

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
16th January, 2009 at 02:17:39 -

thanks much adam, ill take a look at it. if it works correctly, i can use that for all my enemies >.<

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click