The Daily Click ::. Forums ::. Klik Coding Help ::. Grav object
 

Post Reply  Post Oekaki 
 

Posted By Message

Greasy



Registered
  15/02/2005
Points
  322
12th July, 2005 at 20:38:11 -

Does anyone here use the grav object, and if so , anyone know how?

 
n/a

JP



Registered
  07/06/2003
Points
  1338
12th July, 2005 at 23:15:34 -

i would like to know too.

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Greasy



Registered
  15/02/2005
Points
  322
12th July, 2005 at 23:28:43 -

damnit, I was hoping you posted cause you knew.

 
n/a

JP



Registered
  07/06/2003
Points
  1338
12th July, 2005 at 23:59:44 -

nope i have no idea.

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th July, 2005 at 10:23:31 -

I'd never even heard of it before, but I've downloaded it and I'm gonna have a go.

EDIT: I can't work out how the hell you apply it to stuff, it has two conditions and none of them involve picking an object.

Image Edited by the Author.

 
Image

JP



Registered
  07/06/2003
Points
  1338
13th July, 2005 at 13:04:24 -

do you have any code then to simulate gravity?

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Greasy



Registered
  15/02/2005
Points
  322
13th July, 2005 at 15:07:29 -

I have a kinda short one that doesnt work well. Speed of "X" > 0 + Every 00"-01 set Y position of "X" to Y position of "X" + (higer number if you want higher pull)

But if you use the Speed of "X" > 0 thing, It will stop in mid air, but if you dont use it, the object will just go through platforms and stuff

Image Edited by the Author.

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th July, 2005 at 16:01:51 -

I never bother trying to get too much accuracy, I've always just had an Add 1 to Y position, or sometimes had an alterable value that increases, and had that value add to the Y position. In basic platformers, you don't really need anything else unless you're pedantic about mathematical accuracy.

 
Image

JP



Registered
  07/06/2003
Points
  1338
13th July, 2005 at 20:32:03 -

yeah but what if you want shit to bounce or roll down a hill.

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
14th July, 2005 at 02:32:33 -

If you want 'shit' to bounce or roll then you just add gravity the way people usually do:

Active is not overlapping a backdrop > Add one to Alt A of Active

Always > set Active's Y position to Active's Y position + Alt A of Active.

Then for bouncing you just subtract a substantial amount from Alt A, after setting it to zero when it collides with the ground. You will most likely encounter 'graphics glitches' when your active collides with the ground. This can be fixed with a small fast loop (Run it for as many pixels as the active is in height) which moves the active object up one pixel on each loop.

Active is overlapping a backdrop > Alt a = -16, Run loop "fix" for 32 loops,

On loop 'fix' >
+Active is overlapping a backdrop > Active's Y = Active's Y - 1

on loop 'fix'
+ Active is not overlapping a backdrop > Stop loop 'fix'

By the way, It says somewhere that the Grav Object is made for KNP. Which is confusing because KNP can't use extensions.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
14th July, 2005 at 10:46:17 -

I think the Klik and play gravity object (if that is what greasy means) will only work with 16bit tgf, if i remember right

 
.

Nuutti



Registered
  26/10/2003
Points
  1364
14th July, 2005 at 11:24:28 -

He doesn't mean that one, i think... He means the one for mmf and probably tgf.

 
P.S. sorry for my mangled english.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
14th July, 2005 at 18:22:12 -

Well there isn't a "Grav" object to my knowledge. And when i write 'Klik and play gravity object' i mean an object for The games factory only called that.

is that what you mean Greasy?

 
.

Greasy



Registered
  15/02/2005
Points
  322
14th July, 2005 at 18:53:49 -

Go to the Extension list dummmies and search for Grav Object. http://www.clickteam.info/extensions/extlist.php

 
n/a

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!
14th July, 2005 at 19:08:19 -

http://www.clickteam.info/extensions/extview.php?id=139

This one's what you mean, then?

 
Go Moon!
   

Post Reply



 



Advertisement

Worth A Click