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 / Tilemaps question

Author
Message
dijster
12
Years of Service
User Offline
Joined: 16th Aug 2011
Location: Sheffield, UK
Posted: 19th Aug 2011 18:09
Just a quick question.
I was wondering how I would go about drawing a tile map.
for example, if I have the level data like so: -
100000000000
100010001001
111111111111

where 1 is a wall, would I have to clone a wall sprite for each one, or can I draw the same image/sprite in multiple places.

Sorry if I'm not making sense. I've come from BlitzBasic and GLBasic where I can draw the same picture loads of times without having to clone anything.

Thanks
DIJ

Very funny Scotty, Now beam my clothes up!
Hubdule
21
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 19th Aug 2011 18:39
In AppGameKit you've to load an image, then create a sprite from that image. After that you can clone this sprite ... as far as I understand it, you've to use multiple sprites, not just one that gets "pasted" everywhere.

Life is good!

Login to post a reply

Server time is: 2024-03-28 15:10:42
Your offset time is: 2024-03-28 15:10:42