Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / hot areas one one screen

Author
Message
pagio
23
Years of Service
User Offline
Joined: 8th Jan 2003
Location: - Please Select -
Posted: 27th Jan 2007 13:47
my game will be point click adventures i want when you click on some areas to do something how can i make these areas??
like when you click on near the end of the screen to exit this screen(not only box shaped spots but more complicated)?

Dont forget the retro games
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 27th Jan 2007 14:37
As it's for some adventure type of game, I'd use color based maps. That is, a detail map (the map that you will show on screen) and an "area" map. The area map would be formed of colours in the places where in the detail map you'd want a hot area.

Then when the player clicks on a certain part of the detail map, you check on the area map what color it returns and dependant on that do something.

This method is ok for this type of games, but if you ever enter the tile based platform games, don't use it as it will be like hell to work it out.

Need more help? just ask....

Further on my stuff at...
pagio
23
Years of Service
User Offline
Joined: 8th Jan 2003
Location: - Please Select -
Posted: 28th Jan 2007 14:37
can you give an example code about what you are saying zergei?
we are at 60%completion of the backrounds i will send you some images!

Dont forget the retro games
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 28th Jan 2007 19:06
This is a quick code of what i meant...



Further on my stuff at...

Login to post a reply

Server time is: 2026-07-05 04:45:23
Your offset time is: 2026-07-05 04:45:23