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!

Greasy



Registered
  15/02/2005
Points
  322
14th July, 2005 at 19:30:45 -

Yeah

 
n/a

JP



Registered
  07/06/2003
Points
  1338
14th July, 2005 at 20:08:42 -

andy, that doesn't do what I want, for example if you drop a ball down a slope, i want it to roll bounce a bit at first, getting less height each time, to where it just rolls. then at the bottom the ground goes up again, the ball will roll up as far as it's momentum will take it, then roll back down.

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

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

hop



Registered
  16/03/2005
Points
  916
14th July, 2005 at 21:37:50 -

I actually made an engine that did something like this, it's open source too(MMF).

http://www.create-games.com/download.asp?id=5316

It's kinda buggy and terribly commented, but it supports bouncing off walls and platforms for multible objects. Maybe it can give you some ideas to make an engine of your own like it.

 
Working On:
Psydude
Castle Wars(working title)

XBLGT: sunstrike9

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
15th July, 2005 at 07:37:22 -

My example was just a base that I thought you might be able to expand on

 
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

JP



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

I had already gotten that far then couldnt figure out what the hell to do.

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

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

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
16th July, 2005 at 18:33:07 -

It's apparently only useable to the developer, as noone anywhere knows how it works.

 
thinking is like pong, it's easy, but you miss sometimes.
   

Post Reply



 



Advertisement

Worth A Click