Basic shoot em up manual: adding health to the player ship and the boss
Friman
Member Posts: 55
As description says, I'm currently following the tutorial in the manual to get familiar with Game Salad and I have now reached page 15.
In there it says that somehow you can add health to the player ship and the boss ship, but with my limited knowledge with this dev engine I unfourtunely don't know how.
So please describe to me how to do this.
-Cheers
In there it says that somehow you can add health to the player ship and the boss ship, but with my limited knowledge with this dev engine I unfourtunely don't know how.
So please describe to me how to do this.
-Cheers
Best Answer
-
gamesfua Posts: 723Once you make the attributes that you listed above (player health, etc), do the following.
Double click on your main good guy character in your actors window. Drag in CHANGE ATTRIBUTE.
There will be two open fields.
The left most field click and choose PLAYERS HEALTH. That's saying that the attribute we want to modify is PLAYERS HEALTH. Now click on the right open field and type 100.
That's it.
You've told the computer that you want the attribute of PLAYERS HEALTH to equal 100
Answers
Lets say you have an attribute called HEALTH. Well just make an actor called PowerUp or something lile that. Then make a rule that says "when ship overlaps or collides with powerup- add 10 health points to attribute health." The same would apply for the reverse.
"When ship overlaps or collides with enemy bullet, subtract 10 health points from attribute health."
Make sense?
See the link below to find the manual:
https://www.dropbox.com/s/e066r9f8m9h1cyz/GameSalad Creator for Mac Manual.pdf
You can see the quote below that comes straight from the manual:
"To give our two newly created actors health, create two new integer Game Attributes named “Player Health” and “Boss Health”, and set their default value to 100".
Thanks for helping me with my problem.
So again lets say you had an actor called bad guy. And lets say your character crashed into the bad guy. You would go into your good guy character and make a rule ...
"When Actor OVERLAPS OR COLLIDES with actor BAD GUY" then (drag in CHANGE ATTRIBUTE) change attribute PLAYER HEALTH to PLAYER HEALTH-10.
So what that means is, when the good guy hits the bad guy, decrease the player health by 10 integers. The same could be for the opposite. +10 to player health if lets say it hit a power up actor.
Those are the basics. Now you can obviously add more rules like not only decreasing health when the good guy hits the bad guy, but also destroying the bad guy when they collide. Etc.
These are all things you'll learn. But in the meantime look at what i've given you here and keep reading the manual. You'll get the hang of it in no time! Good luck
I want my Player ship to have a starting health value of 100 as the manual states so, how do I do that?
Sorry for taking up your time.
Thanks for the help!
I don't know if the manual was wrong or if I did something wrong.
Hi @Friman ! I got the same problem as you : I want my Player ship to have a starting health value of 100 as the manual states so...
You say you realized what you did wrong, could you tell me what was it ?
Thank you !!
Don't resurrect old threads just start a new one.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Ok ! I found how to give my Player ship a starting health value of 100
For other beginners like me, just follow these instructions :
Hope it will help other beginners who are blocked in the tutorial !