Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 9,184 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: 2D questions [Re: Rei_Ayanami] #403540
06/21/12 19:09
06/21/12 19:09
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
the tiles are always single sprites.. i don´t want to use tilesets like the rpg makers are doing.

BUT
Charactersets

http://www.imagesload.net/img/Personen%20%20-%20%20Karnevals.png
Should be used like they are - 4 directions with X frames for each direction on 1 single image

Same for Autotiles. See my 4-Frame Autotile here:

http://www.imagesload.net/img/ARC_Ocean.png






1.)
Okay.. the filling tool is good for a bitmap..
Here´s my live example of what i need.
Let´s say i created this as map:

http://www.imagesload.net/img/shot_0172.jpg

Now i want to fill this empty space in the middle with a tile i chose from the list.

How to detect if there´s already a tile on X/Y position?
Code:
if(blocks[X][Y][tile_position.z].locked == 0) //check if the tile is empty



Z is a constant variable.. so i just need X and Y.
How to check if the filename of the actual tile is different from the chosen one?
Code:
if(str_cmpi(blocks[X][Y][tile_position.z].filename, placing_filename) == 0) //check if filename and placing_filename is different



filling a tile works with the following call:
Code:
fill_tile(vector(x,y,tile_position.z)); //fill the tile with the actual placing_filename object



the actual tile position (equal to cursor position) is stored in:
tile_position.x, tile_position.y, tile_position.z


I hope a filling tool is possible with that ^^"

Last edited by Espér; 06/21/12 20:47.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: 2D questions [Re: Espér] #403595
06/22/12 13:20
06/22/12 13:20
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Take a look at http://de.wikipedia.org/wiki/Floodfill
Insteat of color comparisons you have to do filename comparison. Apart from that it´s pretty straightforward.


no science involved
Re: 2D questions [Re: fogman] #403617
06/22/12 17:17
06/22/12 17:17
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
hey thanks laugh
i'll read through it and try to code it for myself laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Page 3 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

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