3 things i need help on?

For questions about using Classic.

Post » Wed Dec 01, 2010 9:12 pm

[u:2v5wjqiy]1, List boxes[/u:2v5wjqiy]

Why do list boxes always stay on top of everything else, and show up on a 'Fraps' capture ?

[u:2v5wjqiy]Transparent window[/u:2v5wjqiy]

How do i make a game with a transparent window? Ive seen a couple of posts that mention python, but i cant get my head round it. Could somebody give me a step by step solution?

[u:2v5wjqiy]Bone behavior[/u:2v5wjqiy]

Again, ive read posts about it, but i could do with a step by step?

Please help before my brain melts.

regards

chrisbrobs :oops:
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Wed Dec 01, 2010 10:32 pm

About the bones behavior :

If you want to make a character, you have to create a sprite for each limb, like head, torso, left arm, right arm, etc... Assemble them on the scene but maybe keep some distance between each limbs.

Then give the bone behavior to the torso and enter edit mode. In properties, click on "add".Now click on the limb you want to attach to the torso, maybe the head :)
Next, you have to select where you want to place the pivot point. For the head, you might want to click on the base of the neck. Maintain the left click and drag the pivot to the torso.

You can now either do that for every limb or try some animation.
Click and drag the handle to rotate the head.

To create an animation frame you have to click on Keyframe frame one and select new. Rotate the head again to choose another position.

Now try to switch between frame 1 and 2 in the keyframe list. Both are recorded.


Click on close and launch the preview, the animation should play.

You can add different animation in the bone editor, like jump, etc., and control them by events.
You can also modify existing frames. Now it doesn't matter if you move the limbs anywhere on the scene, because they will go back to the torso at runtime.

Now one thing i don't know is how to delete a bone...

EDIT : Found out how to delete a bone : Place your pointer on the bone and press del... dumb me u_u Tried Ctrl cick and all lol

I learned all this by looking at this example :

viewtopic.php?f=16&t=2210

Now good luck to make some animations :) I hope i helped a bit...
B
4
S
1
G
2
Posts: 91
Reputation: 1,057

Post » Wed Dec 01, 2010 10:35 pm

1.
List Boxes aren't drawn in DirextX, they are windows controls and are always drawn on top. I haven't used fraps so I can't help you there.

2.
This discussion describes how to make the window round in python with winapi calls:
[url:n7aptroj]http://www.scirra.com/forum/viewtopic.php?f=3&t=7515&p=58466[/url:n7aptroj]
Making an arbitrary shaped window is possible but becomes more complicated and less readable.

3.
This is probably the best example for learning how to use the bone behavior:
[url:n7aptroj]http://www.scirra.com/forum/viewtopic.php?f=8&t=2210[/url:n7aptroj]
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Post » Thu Dec 02, 2010 2:24 am

Thanks to, R0J0hound and prawnsushi

That was bloody quick ! ! :wink:

I will get back to this post after ive checked everything out.

take care

chrisbrobs
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Fri Dec 03, 2010 7:11 pm

[u:29soe9oi]Re python[/u:29soe9oi]

With reference to the python tutorial by R0J0hound -

"It's pretty simple from python, but it will require the ctypes library so you'll have to install python to get it to work"

What does this mean, i know nothing about python, how do i install python and ctypes ?

Help ?

regards

chrisbrobs
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Dec 04, 2010 8:56 am

Ctypes is included i Python since version 2.5.
I installed version 2.6 and it works for me. I don't know if it'll work with latest python.

Get it here :

http://www.python.org/download/releases/

Just run the installer, and it'll be ok.

If you need win32com libraries, google it and install the one for your version of python.
B
4
S
1
G
2
Posts: 91
Reputation: 1,057

Post » Sat Dec 04, 2010 2:10 pm

[quote="prawnsushi":39uwz9mz]Ctypes is included i Python since version 2.5.
I installed version 2.6 and it works for me. I don't know if it'll work with latest python.

Get it here :

http://www.python.org/download/releases/

Just run the installer, and it'll be ok.

If you need win32com libraries, google it and install the one for your version of python.[/quote:39uwz9mz]


[u:39uwz9mz]Many thanks for your help[/u:39uwz9mz] ........Gulp !

win32com libraries.........what are they? :oops:

Chrisbrobs
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Dec 04, 2010 6:07 pm

[quote="chrisbrobs":2tli4pqr]win32com libraries.........what are they? [/quote:2tli4pqr]

http://sourceforge.net/projects/pywin32 ... e/download

Win32COM allows you to use python calls to interface with native Windows API calls. So all the cool stuff you used to only be able to do with C/C++ you can do with Python!
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sat Dec 04, 2010 10:27 pm

[quote="scidave":304cby5v][quote="chrisbrobs":304cby5v]win32com libraries.........what are they? [/quote:304cby5v]

http://sourceforge.net/projects/pywin32 ... e/download

Win32COM allows you to use python calls to interface with native Windows API calls. So all the cool stuff you used to only be able to do with C/C++ you can do with Python![/quote:304cby5v]


Where do i install the files.....do i ineed to unzip, move or add to.....the python files in that are in the construct folder.

I have tried opening several python related caps but they crash or give an out of memory error.


thanks in advance

chrisbrobs
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Dec 04, 2010 11:15 pm

Here is a barebones example for making a ellipse window. All the required python files are included in "py.zip" so no python install is needed. Just keep "py.zip" in the same directory as the cap or exported exe.

[url:2mhel9tu]http://dl.dropbox.com/u/5426011/examples3/ellipseWindow.zip[/url:2mhel9tu]
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests