Gamestudio Links
Zorro Links
Newest Posts
Zorro tutorial ideas?
by mistery. 09/19/26 17:09
Trades during a running bar
by Martin_HH. 09/18/26 12:45
Capital slider is not saving in Z12
by frutza. 09/17/26 13:36
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (3run), 1,816 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
mistery, lokkalyansamiti, rahulbuilds, speedx, liop
19236 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2D Tank Game. #328352
06/12/10 12:18
06/12/10 12:18
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 build a 2D top view Tank game. I'm getting 2 problems....

1) Using -ve layer values in an Empty level disappears my Panels.

2) I want to use Multi-colored Image in which each color will have its significant meaning. Like GREEN mean grass, WHITE means snow, BLUE means water & many more. Using this I want to navigate through my game in which if the tank detects BLUE in front it will stop, if grass then okay to move, etc.


Please give me a solution for this problem.

Re: 2D Tank Game. [Re: Tutu] #328815
06/15/10 14:32
06/15/10 14:32
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
I believe negative layers make it a (sky) background, thus indeed appear behind anything else. Start at 1000 or something if you need to go lower.
The manual says:
Quote:
A7.06 Panels, texts, and view entities with a positive layer value are placed above any view; with a negative layer value they are placed below any view. This can be used to define an image visible in the background of a view that has no sky and a transparent sky_color.


To detect you're in water or not, read about pixel_for_bmap in the manual. Check the pixel that is in front of the tank. If its value is blue, you know it's water.

Last edited by Joozey; 06/15/10 14:33.

Click and join the 3dgs irc community!
Room: #3dgs

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