LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

SOS

Root / Programming Questions / [.]

andanithewizardCreated:
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

Have the final boss be in an if than statement and make him a variable?
finalboss=1
finalbosshp=(insert random #)

If (however you reduce hp)<finalbosshp then finalboss=0

If finalboss=0 then goto @gamewin
Hope that helps or at least gives you an option to try.

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

Bahh, no worries on the credit just send me a pm when you have a build available for release ;)

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=0
I 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!

No worries. But now you are at the point where you know just as much if not more than me :p I can't even get my background to load :( But I figured it out. I was loading the wrong layer. Lmao

SAME HERE XD heres a tutorial video https://www.youtube.com/watch?v=NaMzZngXPYs

hey agency do you want to become a developing team?

Not at the moment, sorry. I don't have the time it would require to do. At best I can only put in 2-4 hours a week as is.

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.