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 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, 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.
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)
@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.
just wanted to say thanks.. I didnt learn anything 'new' per se, but i've found many ways to code more efficiently. really excited to move on to your other videos now :)
yo man was just wondering ive make a space invaders game using your tutorial but i cant figure out how to make a second weapon type and change weopon type with a certain key any tips
and also when i get to a certian level say 10 i want to add 1 to lives but i put if level = 10
then lives = lives + 1 but it just addds loads of lives for as long as im on that lever any tips??
yo man was just wondering ive make a space invaders game using your tutorial but i cant figure out how to make a second weapon type and change weopon type with a certain key any tips
and also when i get to a certian level say 10 i want to add 1 to lives but i put if level = 10
then lives = lives + 1 but it just addds loads of lives for as long as im on that lever any tips??
I have been following your tutorials for some time now and I must say that it has given me a great insight on programming in general. I'll be including your work in my school application paper as an inspirations. Thanks for the vidz and looking forward to some more. They should have allowed more then 6stars rating you deserve 10 amigo.
I tried using a Goto for the titlescreen before but wasen't deleting the old types for aliens etc. Also not turning off AutoMidHandle at the start of my game.
For the animation I tried your code "If frame Mod 5 = 1 Then ex\frame = ex\frame + 1" but it just draws 1 frame of the 16. The same as I had before.
I wrote a test program and set animation to MouseHit(1) and it does the same thing. Repeatedly hitting the button cycles frames.
I'll work at it some more. Thanks for all your help again.
I've finished the tutorial, thanks very much for it, it's helped me learn a lot.
A couple quick questions though.
I've added quite a bit to my version of the game but I'm having trouble with animations for when the enemy is killed or the ship is hit. They draw to the screen too fast. I've tried to use timers with no luck.
Also, I've tried creating a function that returns to my title screen when the game is over, with no success.
sorry no, I don't know blitzMax. They changed things loads when switching from Blitz3D to blitzmax, so they're basically two different languages. Thanks for your comments though ;-P
Ok, I understand this is a more complicated question, but for like an RPG, how would you make your character start a walking animation when he walks in a direction.
You need to load a series of frames for animating the character using the loadanimimage function. I have a week off work next week and this is a tutorial I'm planning to make. Remind me if you don't see this within four days. ;-P
With an error like Endif without If, Blitz has no way of knowing where the If statement would have started, so it can't tell you which line to add the correction to. Basically as long as every If has an endif and every while has a wend and so on, you should be okay. I'll make a video soon covering this type of thing. Probably not till the middle of next week though. I'm busy for the next few days.
Wow, I've definitely learned a lot from these videos. Uh, are you working on the new ones now or do you have a certain time-range of when they will be out? Does this mean I'll have to get Blitz3D? Lastly can you explain to me what Parameters are. I was writing in code and it said Not Enough Parameters. So I deleted it and it went away but for future reference I'd like to understand it's impact on the code. (I was adding the MidHandle command)
I've not got the new videos ready yet they'll be going up next week.
Parameters are sometimes called arguments, they're the values you need to give a command to make it work, for example, drawimage requires the parameters of the image name, and the x and y co-ordinates to draw the image. If you press F1 when you type in a command, the status bar at the bottom of the screen will show you what parameters that command needs to work.
Oh okay thanks but I have another question. Um, If you have an error notice come up and take for example it tells you "EndIf without If" or such things as Not Enough Parameters how do you know where to fix that piece of code. Is there a specific place which tells you where the error is and what to discard and add?
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 5 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 3 days ago
iaqsuk1 3 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 3 days ago
@amcadam26
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..
pufixas 3 days ago
@pufixas
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)
pufixas 3 days ago
Comment removed
pufixas 1 year ago
i got your project and opened it and i run it says illegal memory address help?
Austink98 1 year ago
@Austink98 it could be that you don't have the latest version of blitz, so it might not support the file types for the media.
turn debug mode on then run it, it should tell you what the problem is coming from.
amcadam26 1 year ago
Ok ill try, thanks for the help
Austink98 1 year ago
@amcadam26 It says sound doesnt exsit but it all in the folder i downloaed , the .exe works fine
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 3 days ago
I've never really understood types, now I do, so much thanks :D
TifuBlackmoth 2 years ago
just wanted to say thanks.. I didnt learn anything 'new' per se, but i've found many ways to code more efficiently. really excited to move on to your other videos now :)
KrazyKain 2 years ago
i bought me the book :D....thank you java is a pain
smallc28 2 years ago
what book did you get?
Globox822 2 years ago
Blitz 3D Programming Manual....its only 20 bucks =)....
smallc28 2 years ago
This has been flagged as spam show
yo man was just wondering ive make a space invaders game using your tutorial but i cant figure out how to make a second weapon type and change weopon type with a certain key any tips
and also when i get to a certian level say 10 i want to add 1 to lives but i put if level = 10
then lives = lives + 1 but it just addds loads of lives for as long as im on that lever any tips??
BTW great tutorials
BlaZeABigBifTAA 2 years ago
yo man was just wondering ive make a space invaders game using your tutorial but i cant figure out how to make a second weapon type and change weopon type with a certain key any tips
and also when i get to a certian level say 10 i want to add 1 to lives but i put if level = 10
then lives = lives + 1 but it just addds loads of lives for as long as im on that lever any tips??
BTW great tutorials
BlaZeABigBifTAA 2 years ago
Comment removed
bilakispa 2 years ago
I have been following your tutorials for some time now and I must say that it has given me a great insight on programming in general. I'll be including your work in my school application paper as an inspirations. Thanks for the vidz and looking forward to some more. They should have allowed more then 6stars rating you deserve 10 amigo.
chaosgaming 2 years ago
thanx for the tut
im wondering if you could show us how to pause a game
and bring up a menu screen from within the main game loop
without subroutines and goto statements preferred
cujafish 3 years ago
I need help with a problem, PLEASE! PM me a fix for my problem... Or i can gave more info, just PM me-
I get the error "Variable must be a type" at my line containing
If ImagesCollide(IMG_Monkey,MonkeyX,MonkeyY,Monkey_Type,IMG_Banana,banana\X,banana\Y,banana\Banana_Type)
all those things have connected variables, and they are animated images- pleas ehelp me out there! thanks
sevilla14 3 years ago
Thanks for all the tutorials. They were very helpfull and informative. = )
BoCk34 3 years ago
in your explosion type, have a frame variable and have the following line when updating the explosions:
if frame mod 5 = 1 then ex\frame = ex\frame + 1
that way you can draw your explosion with:
drawimage img_explode,ex\x,ex\y,ex\frame
and it will animate 5 times slower than your game speed runs at. Obviously delete the explosion object once your frames goes to high.
amcadam26 3 years ago
I tried using a Goto for the titlescreen before but wasen't deleting the old types for aliens etc. Also not turning off AutoMidHandle at the start of my game.
For the animation I tried your code "If frame Mod 5 = 1 Then ex\frame = ex\frame + 1" but it just draws 1 frame of the 16. The same as I had before.
I wrote a test program and set animation to MouseHit(1) and it does the same thing. Repeatedly hitting the button cycles frames.
I'll work at it some more. Thanks for all your help again.
Venreth 3 years ago
I've finished the tutorial, thanks very much for it, it's helped me learn a lot.
A couple quick questions though.
I've added quite a bit to my version of the game but I'm having trouble with animations for when the enemy is killed or the ship is hit. They draw to the screen too fast. I've tried to use timers with no luck.
Also, I've tried creating a function that returns to my title screen when the game is over, with no success.
Thanks again for the great tutorials.
Venreth 3 years ago
for returning to the title screen, put the line
.title
just before your title page code
and put the line
goto title
at the bit where you want to go to the title screen
For the animation, to slow down animations, I do this....
just before your main loop, declare a frame variable as 0, so frame = 0, then in the loop increase frame by 1 every frame, so frame = frame+1
then when you draw your animation, draw it like this:
amcadam26 3 years ago
can you do the same with blitz max?
THANKS NICE JOB!
jrfps 3 years ago
sorry no, I don't know blitzMax. They changed things loads when switching from Blitz3D to blitzmax, so they're basically two different languages. Thanks for your comments though ;-P
amcadam26 3 years ago
Nice tuts.
Hope some more will follow :)
lordofthecubes 3 years ago
Thanks much.
CJNBrothers 3 years ago
Ok, I understand this is a more complicated question, but for like an RPG, how would you make your character start a walking animation when he walks in a direction.
CJNBrothers 3 years ago
You need to load a series of frames for animating the character using the loadanimimage function. I have a week off work next week and this is a tutorial I'm planning to make. Remind me if you don't see this within four days. ;-P
amcadam26 3 years ago
With an error like Endif without If, Blitz has no way of knowing where the If statement would have started, so it can't tell you which line to add the correction to. Basically as long as every If has an endif and every while has a wend and so on, you should be okay. I'll make a video soon covering this type of thing. Probably not till the middle of next week though. I'm busy for the next few days.
amcadam26 3 years ago
Wow, I've definitely learned a lot from these videos. Uh, are you working on the new ones now or do you have a certain time-range of when they will be out? Does this mean I'll have to get Blitz3D? Lastly can you explain to me what Parameters are. I was writing in code and it said Not Enough Parameters. So I deleted it and it went away but for future reference I'd like to understand it's impact on the code. (I was adding the MidHandle command)
TheLividePianoist 3 years ago
Hi,
I've not got the new videos ready yet they'll be going up next week.
Parameters are sometimes called arguments, they're the values you need to give a command to make it work, for example, drawimage requires the parameters of the image name, and the x and y co-ordinates to draw the image. If you press F1 when you type in a command, the status bar at the bottom of the screen will show you what parameters that command needs to work.
amcadam26 3 years ago
Oh okay thanks but I have another question. Um, If you have an error notice come up and take for example it tells you "EndIf without If" or such things as Not Enough Parameters how do you know where to fix that piece of code. Is there a specific place which tells you where the error is and what to discard and add?
TheLividePianoist 3 years ago