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.


Messages - Hotshot

Pages: [1] 2
1
GLBasic - en / GLBasic News?
« on: 2017-May-17 »
I have checked the NEWS on GLBasic but it hadnt been updated since OCT 2016  :bed:

2
GLBasic - en / Re: Making Database?
« on: 2016-Jun-20 »
thanks man and I will try that :)

3
GLBasic - en / Making Database?
« on: 2016-Jun-17 »
How would I make Database of Football Players? reading from text files(from notepad as that would make less coding)

I know that Type is better than Arrays but are they the faster when come adding players when come to buy and removing player if been sold?  O_O

4
GLBasic - en / Re: Glbasic on Steam? :-)
« on: 2016-Jun-07 »
GLBasic on Steam? I would love to see that as it would make bigger fanbase if goes to Steam :good:

5
GLBasic - en / Re: Shooting?
« on: 2012-Aug-18 »
thanks man :)

I was thinking of doing this

as Monk up

Code: (glbasic) [Select]
Type Game
       
        Function Title_Screen:

        endfunction

       Function Game_Screen:
             
            Show_Background()
            Show_Spaceship()
            Shoot()

       endfunction

      Function Exit_Screen:
         Exit Window
     endfunction
Endtype

global _Game[] as Game

Game_Start=false

Repeat
           if Key(spacebar)
              g.Title_Screen
           elseif
              g.Game_Screen
           elseif Key(Escape)
              g.Exit_Screen
          endif

           showscreen
         
UNTIL KEY(01) = 1 // ESC

Do think the code above is good idea or have you better way of design it to make more cleaner?
       

6
GLBasic - en / Re: Shooting?
« on: 2012-Aug-17 »
Quote
Why not use a timed itteration?

What is that as that never heard of it until now :-[

7
GLBasic - en / Re: Shooting?
« on: 2012-Aug-17 »
I didnt know you can used function inside Type in Glbasic :)

Should I Rewrite the code again and used Function inside type or would end up confusing myself?


8
GLBasic - en / Re: Shooting?
« on: 2012-Aug-17 »
If we going take from Type then

Code: (glbasic) [Select]
Type Shot
        SX
        SY
endtype

GLOBAL shots[] AS SHOT

I am not sure how type deal with Functions I used because I used functions to break small code down

9
GLBasic - en / Re: Shooting?
« on: 2012-Aug-16 »
this is what I have done so far.....but not perfect at the moment

Code: (glbasic) [Select]

FUNCTION Shoot:

         // Press Spacebar to Shoot
         IF KEY(57) AND press=0
            DRAWSPRITE  Bang,MX+265,270-SY
         ENDIF


         SY=SY+2

         IF press>0
            DEC press
            SY=270    // IF Player shoot off then restart the gun at top of spaceship to shoot even more :)
         ENDIF
         

ENDFUNCTION


10
GLBasic - en / Shooting?
« on: 2012-Aug-16 »
I would like to know how you mkae shooting that upward so often.....so if player tap spacebar so often then it shoot up quite lots

so from what I know.....there must be abit of delay when come to shooting......like every 2 seconds per shot would be good because for every arcade shoot em up games that I have played are like that:)


11
Tutorials / Re: Shoot Em Up - Video
« on: 2012-Aug-15 »
Very good Tutorials :nw:

12
Off Topic / Re: Raspberry Pi
« on: 2012-Aug-15 »
Good to hear that GLBASIC is coming to Raspberry PI because coding Python is awful due error handling :(

13
I am learning how to used Shooting by learning this tutorials Video   http://www.glbasic.com/forum/index.php?topic=935.0   

Excellent  =D

14
GLBasic - en / Re: Functions ?
« on: 2012-Aug-15 »
Thanks guys :)

15
I have managed control the spaceship and also got playing area working but one things bugged me is that Spaceship get stuck on the bottom.....

Code: (glbasic) [Select]
FUNCTION Show_Spaceship:

        DRAWSPRITE SpaceShip,250+MX,50+MY
       
        IF KEY(203) THEN DEC MX,SPEED     // LEFT
       
        IF KEY(205) THEN INC MX,SPEED     // Right
       
        IF KEY(200) THEN DEC MY,SPEED     // UP
       
        IF KEY(208) THEN INC MY,SPEED    // DOWN
       
        // STOP SPACESHIP GOING OFF THE SCREEN
        IF MX<-250   THEN MX=-250
        IF MX>350    THEN MX=350
       
        IF MY<215  THEN MY=215  // STOP SPACESHIP GOING OFF THE SCREEN AT THE BOTTOM   ------ PROBLEM !!!
       
ENDFUNCTION


What I am trying to do is Stop Spaceship going off the bottom where everythings is working apart from one things :)


UPDATED - I Got it working :)   The Correct Code is  IF MY>215  THEN MY=215  // STOP SPACESHIP GOING OFF THE SCREEN AT THE BOTTOM :D

My Next Step is get Spaceship Shooting  =D

Pages: [1] 2