Bennu Game Development

English Forums => Helpdesk => Topic started by: MisterN on September 09, 2012, 03:18:19 AM

Title: there a way to move a map?
Post by: MisterN on September 09, 2012, 03:18:19 AM
in a process I put
map_xput(file,scroll_map,graph,x,y,0,100,0);
how would I move it though? I figure placing a map in the process would help save some memory by not having so many processes. thanks
Title: Re:there a way to move a map?
Post by: handsource-dyko on September 09, 2012, 08:38:26 AM
Once a map is blitted on the screen, you can't move it anymore. You could paste a clear map over it, or draw a solid rectangle over it's place and put the map on a new location. The idea with processes is really good, because it's flexible, but the disadvantage is memory overhead.
Title: Re:there a way to move a map?
Post by: MisterN on September 09, 2012, 04:04:04 PM
can you show me how i would achieve this trick of moving a map?