gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > [Solved] sprite arrival problem [WIP] My first game

#21790 - Sanktuaire - Sat Jun 05, 2004 6:43 pm

Firstly please excuse my poor english (i'm a french newbie developper).
I 'm learning programming games on GBA and I have a problem with the arrival of my sprites (enemies) on the top of the screen.

Here is an exemple of my problem :

tyrian.gba

Version online

the enemie doesn't arrive but appears :/ because the y position is initialized to zero.
I tested with modulos but that did not solve my problem and when y gets a negative value, sprites are all messed.

It would be great if anybody could help.

Thanks.


Last edited by Sanktuaire on Mon Jun 07, 2004 8:34 am; edited 1 time in total

#21792 - Sanktuaire - Sat Jun 05, 2004 7:25 pm

Problem solved thanks

#21793 - zazery - Sat Jun 05, 2004 8:05 pm

The problem is a sprite doesn't work right when it has a negative value it's value should be from 0-255. Was this your problem that you solved?

Also that's a really interesting game, nice work. Please let us know if you finish it.

#21800 - Sanktuaire - Sun Jun 06, 2004 5:31 am

zazery wrote:
The problem is a sprite doesn't work right when it has a negative value it's value should be from 0-255. Was this your problem that you solved?

Also that's a really interesting game, nice work. Please let us know if you finish it.

yes i solved it with the absolute value and modulo (y & 255) :)

Thanks for the compliments, i'll post next updates :)

#21806 - tornadokick - Sun Jun 06, 2004 5:37 pm

This post has been deleted.

Last edited by tornadokick on Sun Jun 06, 2004 8:08 pm; edited 1 time in total

#21807 - Sanktuaire - Sun Jun 06, 2004 6:40 pm

"This page is not available. " is what I got when I click

#21808 - alek - Sun Jun 06, 2004 6:49 pm

Sanktuaire wrote:
"This page is not available. " is what I got when I click

copy and paste in the adress field... That worked for me

#21811 - Sanktuaire - Sun Jun 06, 2004 7:29 pm

thanks :)

tornadokick > Maybe can you explain in details what you're trying to do with this. ?

#21815 - tornadokick - Sun Jun 06, 2004 8:07 pm

oh crap, I'm sorry. I thought I was posting in my own topic. Well, this is a first. . . .
It was just a mistake

#21817 - Sanktuaire - Sun Jun 06, 2004 9:02 pm

LOL

#21830 - Sanktuaire - Mon Jun 07, 2004 7:38 am

just a little update

tyrian.gba

Online Version

#21964 - Abscissa - Thu Jun 10, 2004 5:28 am

Wow, I loved Tyrian back in the old days of DOS! I think that's awesome that you're doing a remake of it. Good job so far :)

#22047 - Sanktuaire - Sat Jun 12, 2004 6:26 am

I'm glad that it could pleased some of you :D

Just few updates for now ;)

Tyrian.zip

#22385 - Sanktuaire - Sat Jun 19, 2004 8:44 pm

Here are the first menus of the game

[Images not permitted - Click here to view it] [Images not permitted - Click here to view it]

http://sanktuaire.free.fr/tyrian1.zip