The Daily Click ::. Forums ::. Klik Coding Help ::. No Detector Gravity - Experts Please
 

Post Reply  Post Oekaki 
 

Posted By Message

Keatonian



Registered
  15/07/2002
Points
  571
10th June, 2004 at 09:53:13 -

Err.. AA's method would make this:
Box falls:
Box hits ground:
Box spins for eternity.

Not what I had in mind...

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.

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
11th June, 2004 at 08:33:04 -

It wouldn't spin for eterety. It would only spin until it's direction = right. I'm making 'realistic' suggestions. Because I don't think it would be a good idea to use a whole bunch of objects to make one special effect work. Especially since the limit as we all know is 256.

I'm not sure if TGF has the "Collision Mask" condition, But this is how you could do it. (first include your spinning in the air rotation)

Always - run loop "pizza" (# of boxes times)
On loop pizza
+ Collision mask is obstacle (y pos of box + 5) - Directioncalculator(rotate towards right)

 
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

Kramy



Registered
  08/06/2002
Points
  1888
11th June, 2004 at 12:17:31 -

AA: No collision mask in TGF.

 
Kramy

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
11th June, 2004 at 14:16:08 -

Is this what you're talking about?:
www.gullen.pwp.blueyonder.co.uk/files/gravwotsits.cca
It's pretty hacked together, I just did it really quickly. It'd need detectors to work properly.

 
- Tigerworks

Keatonian



Registered
  15/07/2002
Points
  571
11th June, 2004 at 18:07:55 -

Good tigs, but it is missing the following:
Landing on backdrops
Bouncing off floor
actually rotating...

It is a good fake but it is missing what I want.
If you can chop detector #s by placing it on
the object and running the checks than detectors
are fine, but I want to have as few objects
as possible since I'm working in TGF.

You see, I don't own MMF, or have the money
to buy it. All I have is the trial version
which I use to look at examples...

I see what AA meant now, but it might do a 2##
degree spin to get to right...

PS: Tigs, I don't really understand your avatar

Image Edited by the Author.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.

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
11th June, 2004 at 18:44:00 -

Isn't his avatar of the game 'Terminal Orbit' that has been in production for yonks?

 
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

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
11th June, 2004 at 20:34:25 -

Yeah, it's a really shrunk down screenshot of when I got bored and lined up two huge armies of really powerful units against each other in the level editor. Then I played it. The picture is about one second in.

Landing on backdrops and bouncing off the floor could be done with detectors. What do you mean by 'actually rotating'?
Also you may have problems fastlooping round one detector. The 'Overlapping backdrop' event doesn't seem to work in a fastloop.

 
- Tigerworks

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
11th June, 2004 at 20:57:06 -

I've got it to work in my falling sand example, so it's probably your coding.

 
n/a

Keatonian



Registered
  15/07/2002
Points
  571
12th June, 2004 at 01:35:31 -

Actually rotating, as in not intantly turning to a side but slowly turning on a point of pressure to a side, like in real life.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.

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
12th June, 2004 at 01:47:21 -

That's freaking hard. It could be easier if hotspots could be moved but they can't. For that your looking at having more detectors than actual game.

 
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

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
12th June, 2004 at 09:23:42 -

Yeah, I'm not sure anyone's ever managed that before, there's definitely some complex maths and algorithms involved with centres of gravity, turning forces, etc.

 
- Tigerworks

Keatonian



Registered
  15/07/2002
Points
  571
17th June, 2004 at 05:08:11 -

HaHah! Tigs, I've got it!

I just stopped playing Madness Interactive, and was thinking
about this, and Sine and CoSine because of the hand in MI,
and it came to me!

First the object collides with the ground:
Image

Then, we check to see where it collides with the ground:
Image

Then, our rotating is going to be based on the hot spot as is relivant to the
collision point:
Image

Using Sine and CoSine, we move the box on an Arc, until it reachs the ground
properly, by checking the distance between the two points, drawing a circle, and then
positioning the hot spot on the moving position on the arc while making the
direction vary based on its original direction, stored in a value:
(The orange line is the halfway point, it rotates to whichever side of the line the
hotspot is on)
Image

When the main detector and the detector next to it overlap the ground, it stops
rotating. Then the detector next to it checks (there will be six detectors) if there
are more detectors off than on. If there are, then it rotates on the next point.
Image

The only thing is, this could only work in MMF, due to collision point detection,
which I THINK mmf has. Also, I'm not sure how to run the events by placing the
detectors on the object and then running the events. Also, some of the details are
unclear. I'm happy I came up with all of this though.

What do you think?


Image Edited by the Author.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
17th June, 2004 at 05:41:42 -

It's nice but if your box is moving quickly towards the left, it will hit the ground, fly into the air a little bit and spin anticlockwise very quickly. How are you going to deal with the velocity of the box before it hits the ground?

Edit: MMF doesn't have collision point detection, so you just have detectors on the corners of the box (or the corners that are most likely to hit something, which depends on the direction of the box)

Image Edited by the Author.

 
n/a

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
17th June, 2004 at 06:48:11 -

Very nice description with pictures! But 6 detectors? It would be a very cool engine but you wouldn't want to many of those boxes in your game.

 
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

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
17th June, 2004 at 07:40:54 -

Firemonkey is right, that method doesn't take in to account the velocity of the object before hand. If it was moving quickly, it would have enough force to roll over, maybe several times. If it was moving slowly it might fall back like your example shows. Complicated stuff.

 
- Tigerworks
   

Post Reply



 



Advertisement

Worth A Click