The Daily Click ::. Forums ::. Klik Coding Help ::. I'm a newbie with a question (PMO)
 

Post Reply  Post Oekaki 
 

Posted By Message

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
9th November, 2009 at 14:19:13 -

Alright I used PMO to make a platformer game, I have a problem with it, I followed Chaos PMO tutorials and they don't tell you how to fix it (the tutorial also has this glitch I'm talking about) basically when you move against a wall the animation loops between STOP and RUNNING, is there a way to calculate if theres a backdrop/collision on your left right you won't be able to move to that direction? so the animation doesn't loop like that?

I already understood how to make hitbox/collision box with it and making the sprite in the invisible box, So yeah I require to know this.

Thanks in advance.

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
9th November, 2009 at 21:11:32 -

Perhaps there's a better way, but I use another detector just to stop the animation.

 
Image

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  50152

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
9th November, 2009 at 22:07:19 -

No one has any idea what you are doing in your code since you haven't posted it.

Upload it somewhere and post it here for us to look at.

 
n/a

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
10th November, 2009 at 13:28:35 -

Actually it is the exact same as the chaos platformer example, nothing changed, what must I do so the animation doesn't jerk when I move against a wall.

Also how do I make the jump animated with PMO, I just added if player is jumping > plays jumping animation but for whatever reason it doesn't animate, just one frame and it's also set to loop (there are 4 frames and are supposely looped but it just use 1 frame and doesn't animate)

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
10th November, 2009 at 14:16:50 -

Maybe it's not playing the jumping animation because somewhere else you have it forced to the stopping animation? For example, if you want the jumping animation to play you need to add a condition to your "change to stopped animation" that says "if player isn't jumping" / "if player's jumping animation isn't playing" then change to stopped. Same thing with attack animations or really anything. For my game I have about 20 different "if animation X isn't playing", "if animation Y isn't playing" -> change to stopped animation.

So without seeing this code at all that's what it sounds like to me. Somewhere in there you have a line that's changing it to stopped because there's no check to see if your guy's not jumping.

I guess??

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
11th November, 2009 at 07:01:18 -

OK here is the prototype game that I just started working on, excuse the crappy backdrops and etc... it's the debug room where I test my character to perfect the events of the character not to glitch and etc...

http://www.mediafire.com/download.php?1nhfdmkzjge

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
12th November, 2009 at 17:53:25 -

Here is a more updated version of the prototype engine, please download it and tell me how to fix it, for now I solved the moving to wall junky animation bug but the jumping animation doesn't play properly, download the source here and tell me what's wrong in the code.

http://www.mediafire.com/?khd5gtyiynk

Thanks in advance.

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
18th November, 2009 at 07:36:39 -

Sorry for the bump but can anyone tell me what's wrong with it?

did anyone try it?

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
18th November, 2009 at 11:45:05 -

Ok - i have looked at this and you appear to have misunderstood how some of the PMO works. I have edited your code and uploaded it below.

http://www.mediafire.com/?zo4idyhk2mi

I have added the conditions to make your engine work. hope you can see what i have done.

 
n/a

LavaWave

Sin Binned (Broke The Rules)

Registered
  22/12/2008
Points
  -319

VIP Member
18th November, 2009 at 14:22:09 -

Thanks lembi2001

This will solve my problem.

 
Visit my Newgrounds account.

http://lavawave.newgrounds.com

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
18th November, 2009 at 19:19:39 -

no problem - anytime

 
n/a

Rikus

Administrator
Crazy for News

Registered
  02/12/2001
Points
  498
19th November, 2009 at 07:42:13 -

Great way to help out, im just gonna send you some points there lembi2001 just cause you gave a helping hand


 
Be sure to follow us on the twitters for the latest and greatest: @dailyclick
   

Post Reply



 



Advertisement

Worth A Click