Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Hotshot

#16
Thanks :)

Now I got Scrolling Background that go up! Nice one :)

Inc Move,1

That look like Assembler code doesnt it  LOL

Quote
And tile maps are not such a great amount of work. Try using the DATA structure pointing to the specific tiles. Sounds complicated, but in fact it is rather simple. I don't have much time right now, but if you want to, I could try to explain it to you tomorrow or the day afte

I did love know about that but no rush :)

Next step is put Spaceship in there and move about :)



Going to learn on Control the Spaceship and also Playing area to stop from Spaceship going off the screen :)
#17
Thanks man :)

Quote
Try using a tile map with small images instead of one large image for the level background graphics.

That take lots of work to do as I only used it for learning project

I am wondering why my background doesnt scroll up.....

Code (glbasic) Select

GLOBAL BACKGROUND=0
GLOBAL Move%


LOADSPRITE "BACKGROUND2.JPG", BACKGROUND

WHILE NOT TRUE

       SHOW_BACKGROUND()
       SHOWSCREEN

WEND

END

FUNCTION SHOW_BACKGROUND:

        DRAWSPRITE BACKGROUND, 0, -5700+Move
        Move=Move+1

ENDFUNCTION


deltatime? Yes, I will be using that when I got my learning project up, when it is ready and I will be using it :)


#18
I am trying do Background scrolling of going up and I have create Global Move

Code (glbasic) Select

FUNCTION SHOW_BACKGROUND:

        DRAWSPRITE BACKGROUND, 0, -5700+Move
        Move=Move-1

ENDFUNCTION


I just dont know why it got error when it say variable is not explicitly defined : Move as I guess I have to Declare Variable before I used it.......right?

Another things I have notice that GLBASIC only accept   JPG, BMP but not PNG......By the way....I am using free version and just let you know :)

Code (glbasic) Select

GLOBAL BACKGROUND=0
GLOBAL Move AS INTEGER


LOADSPRITE "BACKGROUND2.JPG", BACKGROUND

SHOW_BACKGROUND()

SHOWSCREEN
MOUSEWAIT
END


FUNCTION SHOW_BACKGROUND:

        DRAWSPRITE BACKGROUND, 0, -5700+Move
        Move=Move-1

ENDFUNCTION



#19
Thanks:)

I am using 2D Sprites and hoping to create Basic 2D Shoot em up :)

Here the picture

#20
I want to make the image bigger but questions is which commands make the image go bigger?
#21
Thanks Poetronic  =D   I love Functions because that where I can break small code down into :)
#22
GLBasic - en / Functions ?
2012-Aug-15
Hello Everyone

I going to give GLBASIC Second chance and give a try :)

Code (glbasic) Select

GLOBAL BACKGROUND=0

LOADSPRITE "picture.PNG", BACKGROUND

FUNCTION SHOW_BACKGROUND:

         DRAWSPRITE BACKGROUND, 100, 100


ENDFUNCTION

SHOW_BACKGROUND()

SHOWSCREEN
MOUSEWAIT
END


What wrong with the code as it saying

"MYFIRSTPROGRAM.gbas"(31) error : command not inside function or sub