Re: Need help with hotspot maps
Status: Alpha
Brought to you by:
cwalther
From: James W. <jfc...@ya...> - 2009-11-03 20:12:57
|
I think Aiden forgot to add that you can only find the palette in the source code download, not the bineries. Also, note that you must place the hotspot in node.lua according to the location on the indexed hotspot file. Like so: If you have one hotspot that is the first(or ordered first, it doesn't actually matter what color it is, as long as it comes before the others in the palette) color, you include the following standard hotspot line in node.lua: hotspot { target = 2, effect = { pipmak.rotate, pipmak.left, 10, state.slideduration }, cursor = pipmak.hand_right } Make sure that it is the FIRST hotspot definition in the node.lua file. Then go from there. --- On Tue, 11/3/09, Aidan Gauland <wgs...@no...> wrote: From: Aidan Gauland <wgs...@no...> Subject: Re: Need help with hotspot maps To: "Content creation for the Pipmak Game Engine" <pip...@li...> Date: Tuesday, November 3, 2009, 2:07 PM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 syxified wrote: > I have never been able to successfully get a hotspot map to work in pipmak, > even if I am pretty much word for word copying the syntax from the demo > where they seem to work perfectly. I've simplified a few down to just a > slide and some spots that would print out a msg if clicked, but nothing > doing. I have never been able to find that file with the pallette for the > indexed colors, which there is a good chance is the root of the issue. I'm > not sure exactly how that indexing is supposed to work - are there > pre-established colors that are set to indexes 0,1,2, etc? Or does that > depend on the image file and how it was set up when saved? Any advice > towards making a successful hotspot map would be greatly appreciated. There are no pre-established colors that are used, but the colors used by the image file itself. An image with indexed colors is one that uses its own set color palette of up to 256 colors. Pipmak comes with a color palette that is well suited to drawing hotspot maps, because of the contrast between the colors. The file is "hotspot-palette.gif" in the folder "extras" (that comes with Pipmak). How to import this into your bitmap-image editor depends on what you are using. So, in short... * Your hotspot map has to be an indexed image (not RGB). * The first color on the palette maps to the first hotspot, the second color to the second hotspot, etc. * /Anywhere/ color 0 appears on the image will be hotspot 0, so hotspots do not have to be all one (visual) piece. Hope this helps, Aidan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrwf18ACgkQjyzTRvYJmaWT0wCfWzwylu6OfSmdQDRO0A5DC/bp iVkAnjYFZCI9Nw2AAabBKBX3spjoWaqu =zJq6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |