Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - WajdaW

Pages: [1]
1
General / Some controls in SFML game
« on: November 10, 2010, 10:33:33 am »
Hi there, I have a problem about how to realize some combo boxes, text boxes and text area in my game?
Combo box is needed for player to choose character, and other is needed for in-game chat. I want for those controls not to be windows like, but to have some custom skins which will be similar to game theme. Now how to realize those controls do I need to make my own controls for this or I can use for example windows forms controls, or winAPI controls and somehow override their look?
How to do that?

2
Graphics / Sprite hit area, how to?
« on: October 04, 2010, 10:04:10 am »
Yes, that rectangles in picture I attached are sprites and they overlap, and those counties are images and they dont overlap, so I want to know how to after mouse click I can determine which country is clicked onto if click happened in sprite overlap area.
I thought to make all neighboud contries different color and ask which color is beneath mouse and then determine a country on that color.
I thought if is there some property to set costum hit area for countries, like there is a hit area in flash...

3
Graphics / Sprite hit area, how to?
« on: October 03, 2010, 10:21:06 pm »
Thanks for reply, but I think that I asked maybe little wrong... :)
I need to determine when my mouse button click on this border which country it really clicked, because if I click on spot where owerlaping rectangles are, i will be noticed that mouse is over both countries...

I hope I made myself little bit clearer. :)

Those sprites will be static, they won't move or colide, I just need to click on them and get one that is exactly clicked.

4
Graphics / Sprite hit area, how to?
« on: October 02, 2010, 06:45:49 pm »
If I have for example two sprites that are no squares, more like two neighbour contries with all that wavy border, hot to make exactly hit area for those sprites?

something like this:

[/img]

Pages: [1]
anything