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.

AppGameKit Classic Chat / tiles or sprites..

Author
Message
eflake
9
Years of Service
User Offline
Joined: 22nd May 2015
Location:
Posted: 22nd May 2015 17:20
If I want to use the same tile to build a maze, do i look at using Sprites or something else? I notice that Sprites are 'individuals'.

Thanks.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd May 2015 18:12
There is no such thing as a 'tile' in AppGameKit but you can add multiple sprites using the same image. I'm not sure if that answers your question though?

Using AppGameKit V2 Tier 1
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd May 2015 18:13
You would generally use sprites. Hundreds of sprites can use the same image, so it is a very efficient way to populate the screen.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 22nd May 2015 18:25 Edited at: 22nd May 2015 18:26
A slightly more advanced method is to scale the UV's of a sprite to make it appear to be tiled.
For example: A long platform may appear to be made of 10 identical sprites but is in fact a single sprite with the image on it scaled to 10% and repeated.

I would imagine that is more efficient than multiple sprites but I\'ve never given it a thorough shake down.

AGK V2 user - Tier 1 (mostly)
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 23rd May 2015 08:58
AGK, from my experience, is very efficient in dealing with thousands of sprites on and off screen. I call them tiles internally for clarity but they are sprites. Clone away! If your maze is larger than will fit on the screen then just build it up and use screen offset to rove around it. AppGameKit will do a grand job of ignoring the ones offscreen therefore keeping the draw rate super fast.

Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)

Login to post a reply

Server time is: 2024-11-25 21:51:46
Your offset time is: 2024-11-25 21:51:46