Blitz Basic Programming for Beginners - Part 10
Loading...
6,032
Uploader Comments (amcadam26)
see all
Video Responses
see all
All Comments (33)
-
@amcadam26, Heres my code: ;delets bombs if collides with bullets For bombs.bomb = Each bomb bombs\y = bombs\y + 4 Next For b.bullet = Each bullet b\x = x b\y = b\y - 5 Next img_bullet = LoadImage("gfx\bullet.png") DrawImage img_bullet,b\x,b\y img_bomb = LoadImage("gfx\bomb.png") DrawImage img_bomb,bombs\x,bombs\y If ImagesCollide(img_bomb,bombs\x
,bombs\y,0,img_bullet,b\x,b\y, 0) Then PlaySound(snd_bulletbomb) Delete bombs Delete b EndIf im getting a object does not exist even it is. -
PART 2:
Now I looked up SFML, and it is AWESOME! Fast, simple to use, bunch of functions, alpha blending, real time rotation, and more! It's really fun..
-
PART 1:
Long story really, it's been 1 year... But you are the one who tough me game programming logic... At first was learning C++, but It was hard so I switched to Blitz, after that I made nothing good out of it, so I switched back to C++ and brought a C++ book, after I mastered the basics of C++ I found Blitz3D SDK for C++ (I made few projects, look up my channel if you are interested)
I programmed C++ Blitz3D for quite a while, but I found that it was too basic (no alpha blending)
-
@amcadam26 It says sound doesnt exsit but it all in the folder i downloaed , the .exe works fine
Loading...
Hi amcadam26, thanks for the tutorial video, great stuff, learned alot. I finished all 10 videos. I was trying to add a code for imagecollide from playerls bullets with aliens bomb and delete themselves. Would this be the same as bullets imagecollide with aliens? As of now alien bombs and players bullets just goes thru each other. If you can help, if not no biggy. I'll also try to figure it out my self, but thought I'd ask. I did add alien explosion .png, cool. Thanks.
iaqsuk1 3 days ago
@iaqsuk1 Hi, yes it would be the same thing as hitting the enemy ships. Would be easy to add the check into the code that checks whether the bullets hit the enemy ships, to save cycling through all the bullets again, just add an extra loop in there to cycle through enemy bombs, then delete the bomb and bullet is they collide.
amcadam26 2 days ago
OMFG!!! Thank you sir!!! :)
I will try to make game with blitz my self! :)
pufixas 1 year ago
@pufixas How did it go?
amcadam26 2 days ago
i got your project and opened it and i run it says illegal memory address help?
Austink98 1 year ago
@Austink98 probably due to location of files. You need to check that all the folders exist with the images in them. also check your blitz3D is upto date as the older blitz doesn't support png images.
amcadam26 2 days ago