Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] bg from one picture
#1
i want to made a bg so i have how the BG looks like i mean i have the sprite
i made a onw sprite that i want it to be in the game one by one i mean one after another
the sprite size is 533x403
how should the data be?
i dont know how to write a BG data frames so i need help XD
[Image: p45mycA.png]
Reply
Thanks given by:
#2
http://www.lf-empire.de/en/lfe-fileplane...670-temple

best study example to code a one image-background :D
Reply
Thanks given by: Ariel
#3
thanks man but it didnt help me i mean
i have a BG like this:
XXXXXXXXXXXXXXX
GGGGGGGGGGGGGGG
GGGGGGGGGGGGGGG
GGGGGGGGGGGGGGG
(G - floor , X - wall )
now i need to make it in the game like this:
XXXXXXXXXXXXXXX,XXXXXXXXXXXXXXX,XXXXXXXXXXXXXXX,XXXXXXXXXXXXXXX...
GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG...
GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG...
GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG,GGGGGGGGGGGGGGG...

hope u understand it XD
i found i neet towrite loop: X
but when i write loop: 1 i see the BG smudge on the game and when i write 533 (the width of the image) i see only one copy :\
oh and when im runing on the map the bg move slow and stay on he screen (one copy) but i want it to look like i run there not run on the place :\
[Image: p45mycA.png]
Reply
Thanks given by:
#4
maybe enlarge the width in the head of the bg so there`s room for more then one copy...
[Image: random.php?pic=random]
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Reply
Thanks given by: Ariel
#5
THANKS!!!!!
now its working!!!!!
only last problem XD
the chars can move on the walls and even out of the screen like they fly XD
how can i say "there is a wall there , cant move on walls" ? XD
AND THANKSS!!!!!

EDIT:
NVM
WORKING!!!!!!!!!!!!!
[Image: p45mycA.png]
Reply
Thanks given by:
#6
change the "zboundary". First one is lower limit, second is upper
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)