Imagemaps or Imagebuttons?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
User avatar
LiveTurkey
Regular
Posts: 109
Joined: Tue Dec 27, 2016 10:50 pm
Location: Brooklyn
Contact:

Imagemaps or Imagebuttons?

#1 Post by LiveTurkey »

Which do you guys prefer? Does it make a difference?

At first I started building my game using image maps. That way the game is much smaller since you only need two images per scene. The ground and the hover.

However imagebuttons do seem to provide more flexibility, especially if you plan on adding content. For example if you want to add a interactable character into a classroom setting, you don't have to change the entire ground and hover image. You just add an imagebutton of that character.

Any thoughts? I want to start commissioning art shortly and I don't know if I should go the imagemap route or the imagebutton route.

User avatar
Sleepy
Regular
Posts: 136
Joined: Wed Nov 27, 2013 6:12 pm
Projects: Camera Anima
Organization: EXP-resso Mutt
Tumblr: sleepy-does-games.tumblr.com
itch: https://expressomutt
Contact:

Re: Imagemaps or Imagebuttons?

#2 Post by Sleepy »

It depends on what you want to do, really. I use image buttons primarily but that's because a ) I find them easier to edit and code for b ) my game is a point-and-click game so I have a lot of different sorts of interaction points and things are often added or removed.

If you have something like a navigation map or something that's going to be operating off a single area anyway, image maps is probably better. If you know you're going to have multiple or spread out interaction points, probably image buttons.
W.I.P.

Image

Complete

Image Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Imagemaps or Imagebuttons?

#3 Post by Imperf3kt »

There may be only two images to imagemaps, but imagebuttons have the advantage of a smaller overall filesize.
You can also reuse some imagebuttons for several uses. For example, a blank "button" that you code the text over. You now have an infinite number of buttons without having to draw every single one.

I pretty much use imagebuttons for the same reasons as Sleepy - ease of use, ease of changing my mind without having to redraw the entire image / recode the hotspots. It is also far easier to move an imagebutton 3 pixels left, than it is to redraw a ground image and the hover image needed in image maps.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Imagemaps or Imagebuttons?

#4 Post by trooper6 »

For everything Sleepy and Imperf3kt said, imagebutton are better. You can also give imagebuttons transforms and have the wiggle or zoom when you hover over them. You can focus mask True on them so they don't detect the transparent areas, so you can have oddly shaped (or even just circular shaped) imagebuttons.

imagebutton > imagemap
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]