Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,655 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to detect Pixel Color & manage game???? #328552
06/13/10 21:20
06/13/10 21:20
Joined: Feb 2010
Posts: 10
India
T
Tutu Offline OP
Newbie
Tutu  Offline OP
Newbie
T

Joined: Feb 2010
Posts: 10
India
I want to create a 2D level in TOP view... in which a bmap will give the color values of different positions like green means grass which will put grass sprites there, so my car can move over there, a blue area means water putting water sprites there and it should block my car to move over there, and so on.


1. How can I detect the colored area of the bmap to load my level?
I mean, I want to put grass,water, etc. sprites depending on the bmap pattern.

2. How can I detect the colored area of the bmap under my car and manage its moving?

Re: How to detect Pixel Color & manage game???? [Re: Tutu] #328556
06/13/10 21:37
06/13/10 21:37
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
the pixel_for_bmap function is all you need

Re: How to detect Pixel Color & manage game???? [Re: Scorpion] #328567
06/13/10 23:47
06/13/10 23:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You have opened 4 (four!) threads for the same question, that is a new record.
Please keep the forums clean and do not make quadruple posts, you will still get help if you only post in one topic.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1