Amazing Abdulah!

Post your Construct-made creations!

Post » Tue Dec 04, 2007 11:17 pm

At the early hours of my construct usage, I had some problems finding the site too. (It's bookmarked now ;))
I found it by googling "construct 0.86"
B
2
S
1
G
5
Posts: 50
Reputation: 1,500

Post » Tue Feb 05, 2008 11:20 pm

The problem i'm having right now is that i want the "throw-stuff-engine" to work on every object with a specific family. That just doesn't work. If i remember it right, you can't add a force to a family.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Wed Feb 06, 2008 1:13 am

Ah, I see. I suppose it would be handy to add movements to families as well as objects.

I know that Ashley's added private variable support for families in the latest build, so there is a workaround... perhaps you could re-write the engine to convert private variable information into force for individual objects? Kinda like:

[Throwable (Family)]
- Stone
- Box
- Other Stuff

[Stone (Pvt. Variables)]
- forceAdd
- selected

[Box (Pvt. Variables)]
- forceAdd
- selected

etc.

Then instead this (which is what you have now):

[code:32qsmzjw]
+ On Left Clicked on Stone
- Set 'selected' to 1

+ On Left mouse button Clicked
+ Value 'selected' equal to 1
- Set force 12000 toward (eye.X, eye.Y)
[/code:32qsmzjw]

You could do this:

[code:32qsmzjw]
+ On Left Clicked on familyThrowable
- Set 'selected' to 1

+ On Left mouse button Clicked
+ familyThrowable.Value('selected') equal to 1
- Set familyThrowable.Value('forceAdd') to 12000

+ Stone.Value('forceAdd') Greater than 0
- Set force Stone.Value('forceAdd') toward (eye.X, eye.Y)
- Set Stone.Value('forceAdd') to 0

+ Box.Value('forceAdd') Greater than 0
- Set force Box.Value('forceAdd') toward (eye.X, eye.Y)
- Set Box.Value('forceAdd') to 0
[/code:32qsmzjw]

Hope that makes sense. Now get back to work! :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Feb 06, 2008 7:45 pm

Aah, clever! I'll get back to it as soon as possible!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Feb 11, 2008 8:53 pm

It says now that familys should work with movements, so i tried it. I replaced the first event in the throwing engine with the family, and everything went crazy. Check it out.

http://www.mediafire.com/?8xmniccxzdv

If Ashley is working on fixing the familys+movements i might as well wait until the next build. Im soure it's fixed by then if we point it out.

Ashley. I now officially point out that the familys don't really work with the physics movement.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Previous

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest