Jump to content
  • Advertisement

Redmetal

Member
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

112 Neutral

About Redmetal

  • Rank
    Member
  1. Redmetal

    CHECK CODE PLZ

    What do u mean ??????
  2. Redmetal

    CHECK CODE PLZ

    I wrote this gmae in Blitz BASIC and when i run it there is some error which says "Object does not exist" It happens because of the compiler defined ImageCollide() function I dont know what i did wrong. Heres the code: Graphics 640,480 SetBuffer BackBuffer() AutoMidHandle True Type bullet Field x,y Field image End Type Type enemy Field x,y Field image Field direction End Type Type player Field image Field x,y End Type ;Constants Section Const Leftkey=203,Rightkey=205,Upkey=200,Downkey=208,ESC=1,Spacebar=57 ;Intialize variables to correct values Global player.player=New player player\image=LoadImage("D:\Documents and Settings\Yashesh Pandya\Desktop\ship.bmp") player\x=320 player\y=440 Global bullet.bullet=New bullet bullet\image=LoadImage("D:\Documents and Settings\Yashesh Pandya\Desktop\bullet.bmp") bullet\x=0 bullet\y=0 Global enemy.enemy=New enemy enemy\image=LoadImage("D:\Documents and Settings\Yashesh Pandya\Desktop\enemyship.bmp") enemy\direction=1 enemy\x=0 enemy\y=20 ;Main Loop While Not KeyDown(ESC) Cls TestInput() TestCollisions() UpdateEnemy() PlayerArea() TestCollisions() UpdateBullet() DrawImage enemy\image,enemy\x,enemy\y DrawImage player\image,player\x,player\y Flip Wend ;Function Function TestInput() If KeyDown(Leftkey) player\x=player\x+4 If player\x<=0 player\x=0 EndIf EndIf If KeyDown(Rightkey) player\x=player\x-5 If player\x>=640 player\x=640 EndIf EndIf If KeyHit(Spacebar) bullet.bullet=New bullet bullet\x=player\x bullet\y=player\y EndIf End Function ;Updates enemy Function UpdateEnemy() If enemy\x<0 Or enemy\x>590 enemy\direction=-enemy\direction End If End Function ;Updates the bullets in the game Function UpdateBullet() For bullet.bullet=Each bullet bullet\y=bullet\y-5 If bullet\y<=0 Delete bullet Else DrawImage bullet\image,bullet\x,bullet\y EndIf Next End Function ;player's total play area Function PlayerArea() If player\x<=0 player\x=0 EndIf End Function ;Test for Collisions\Overlaps ;THIS IS WHERE THE PROBLEM OCCURS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*********** Function TestCollisions() If ImagesCollide(bullet\image,bullet\x,bullet\y,0,enemy\image,enemy\x,enemy\y,0) enemy\x=0 enemy\y=20 EndIf End Function
  3. Redmetal

    Blitz Basic question

    So what does centering the images mean ?
  4. Redmetal

    Blitz Basic question

    What does the Automidhandle True() function exactly do ??????
  5. Redmetal

    Blitz Basic

    Thnx
  6. Redmetal

    Blitz Basic

    So does anyone here have blitz basic and darkbasic experince? If so which one is easier? Thnx, Redmetal
  7. Redmetal

    Blitz Basic

    So whats the point of using SQL? Why do we need it? Thnx, Redmetal
  8. Redmetal

    Blitz Basic

    Is Darkbasic easier then Blitz Basic? Just Wondering. By the way has anyone heard of the Oracle thing? SQL language. I wanted to know what it is cause my dad a computer programmer and i wanted to know how he uses it and what he does with it? Thank You, Redmetal
  9. Redmetal

    C++

    Is C++ the language that commercial games are amde in? Is it the ultimate game creation language? Thank You, Redmetal
  10. Redmetal

    Curiosity

    Thanks
  11. Redmetal

    Curiosity

    I must be a real dumass if i cant learn blitz basic and you started learning all these complicated languages at a young age. I am only 15 and i have never programmed before. Is there a super easy programming language to learn that will let you create games? Thank you Redmetal
  12. Redmetal

    Curiosity

    I was just wondering can u tell me what age were u guys when u learned your first language and what was the language? Cause I am trying to learn blitz basic and i am horribly sucking with arrays and all that stuff. I am learning from the book "Game Programming For Teens". If u have this book all that crap is in chapter 3. Thnx, Redmetal
  13. Redmetal

    Darkbasic vs. Blitz Basic

    ok this blitz basic thing is really pissing me off what the hell are arrays???????????????????? how do i use them?
  14. Redmetal

    Darkbasic vs. Blitz Basic

    Which is the easiest game programming language? Thnx for all the help aprreciate it.
  15. Redmetal

    Darkbasic vs. Blitz Basic

    Why do u need the global and local thing?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!