Texture as a background

2 views
Skip to first unread message

indy2005

unread,
Aug 17, 2010, 6:48:09 PM8/17/10
to Mekanimo
Hi,

Is there any way to bring in a texture purely as a background image?
I want to "trace" a motorbike from an image, so just need the image in
the background while I create appropriate physics elements on top of
the image?

I tried adding a Texture into the library but pressing Enter does
nothing.

Regards

i

Frank

unread,
Aug 17, 2010, 7:31:19 PM8/17/10
to Mekanimo
Hi indy,

There's a simple way of doing that.
1)add the Sprite to the library
2)Create a rectangle of the size of the box
3)Add a Sprite to that rectangle (Going to Object->Set Sprite (select
your sprite))
4)Trace your motorbike on top of the image... once done. Remove the
initial rectangle and you got the physics elements.

Hope that's what you wanted.

indy2005

unread,
Aug 17, 2010, 6:59:57 PM8/17/10
to Mekanimo
Traceback (most recent call last):
File "mainframe.pyo", line 3955, in onEnter
File "system.pyo", line 3224, in __getattr__
AttributeError: appDir

Fahreddın Basegmez

unread,
Aug 17, 2010, 9:16:14 PM8/17/10
to meka...@googlegroups.com
I will fix this.  In the mean time you can type

system.appDir == system.dataDir

in the interpreter or code editor prior to adding textures.

If you type

>>> system.dataDir

and hit enter in the Python interpreter this should give you a directory path.  There is a subdirectory called brushes in this directory.  If you copy your texture file into this directory (you need to name the file as groupname_texturename.png (or gif or jpg)).  Then when you start Mekanimo, you can see this texture among others in the assign texture menu.

There are similar problems with sprites due to system.appDir.  You can resolve those issues in a similar way.

Thanks for the feedback.

Fahri

--
You received this message because you are subscribed to the Google Groups "Mekanimo" group.
To post to this group, send email to meka...@googlegroups.com.
To unsubscribe from this group, send email to mekanimo+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mekanimo?hl=en.


Fahri

unread,
Aug 18, 2010, 8:06:51 AM8/18/10
to Mekanimo

indy2005

unread,
Aug 18, 2010, 11:53:40 AM8/18/10
to Mekanimo
Great thanks
Reply all
Reply to author
Forward
0 new messages