The Daily Click ::. Forums ::. Klik Coding Help ::. grenade problems
 

Post Reply  Post Oekaki 
 

Posted By Message

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
11th July, 2007 at 14:45:35 -

The code im using my grenade with has a few problems. whenever i hit the buttone, it curves upwards to a certain point and then curves downward. Then, when it hits the floor, i can have it bounce for a few times and then blow up.
But right now i just have it blow up on contact. The reason being is whenever i throw the grenade down a long shaft that connects to another room, it reacts correctly. So, whats the problem you ask? Since it curves, when it gets so far down the bottom, it hits a side, causing it to... bounce back Upwards!
But I want to make it bounce back down! Im using phizzy's "realistic" jumping tutorial for the code. Is there any other way to do this? I have the Impakt engine but its not well commented and i dont know whats going on. Thanks in advance, i'll check back later. Using mmf 1.5 btw

Image Edited by the Author.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
11th July, 2007 at 16:49:35 -

well you need to test whether its hitting a wall or the floor. HOw you do that im not sure because ive not seen phizzy's realistic jump tutorial.

 
.

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
12th July, 2007 at 14:24:54 -

well, its in his article, but i want to see if there's another way you can bounce a grenade yet still have it react to gravity in a realistic way. Is there any toher way to do this though?

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
12th July, 2007 at 14:42:00 -

Well, you could try this: http://www.create-games.com/download.asp?id=6764

 
Go Moon!

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
15th July, 2007 at 00:02:29 -

Actually, I do have that already. But again, I'll have to look through it. Anyway, thanks tho.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko
   

Post Reply



 



Advertisement

Worth A Click