so I'm making my first game on SmileBASIC and I'm stumpted what I'm trying to do is find a way to script a spacewar game where you shoot the main ship and win but i don't know what to do
to get the result if you have any ideas on how i can do this please reply thanks
SOS
Root / Programming Questions / [.]
andanithewizardCreated:
ok thx
so next all i have to do is make the laser sprites and the hp for the player
ill give you credit though
wait what do you mean by "however you reduce hp"
Idk what you are using for an attack but I assume you have a Damage variable and I assume the boss has health points. Wether it's 3 or 30 it doesn't really matter. So that would be
If PlayerDamage>finalbosshp then finalboss=0I also mixed up the greater than/less than symbols. So if you read it like a sentence it would be: if the damage is greater than the final bosses hp then it kills the final boss
ok but how will i make a damage variable i don't really know how
sorry
edit 1: nvm i think i know how
edit 2: do i have to add quotations around the variables?
edit 3: i already have the boss variable in @ death so should i put the laser variables there to?
edit 4: I'm going to be offline tonight ill be back tomorrow
Sounds good to me. Variable layout is kind of personal preference but are usually (always?) set at the beginning of a program. I lump mine together into groups. So all the player related variables will be in one line, all the enemies in another, controls, etc.
And for the record you can edit your first comment and add any new questions there if someone hasn't responded yet. There is an alert system as you have probably noticed that notifies you when someone responded or edited a comment in a thread you are watching.
Okay so edit buttons exist. We don't need 5 posts all together. If you're struggling with the basics of SmileBasic, a game with sprites and collision and whatever is out of the picture. Start with some text-based programs until you get familiar with SB.
Okay so edit buttons exist. We don't need 5 posts all together. If you're struggling with the basics of SmileBasic, a game with sprites and collision and whatever is out of the picture. Start with some text-based programs until you get familiar with SB.thats what i did this is my first real game and i do know how to use sprites just not collision i just need help with collision
I can get you a key for bg collisions after work. It's a tutorial program that will show you everything you need to know. If you can find ChuckN on the miiverse he has the key for it if you want it sooner rather than later.
Thanks for cleaning up the thread persson.
[Edit] I found it :D the key is: KEPD4YD
thanks!
SAME HERE XD heres a tutorial video https://www.youtube.com/watch?v=NaMzZngXPYs
hey agency do you want to become a developing team?
oh ok
i see that u are on rn
do you want to go in the chat room?
ok sorry
I'm new to this
oh ok
i see that u are on rn do you want to go in the chat room?Just so you know, editing is a better idea then posting a bunch of things.