Basic shoot em up manual: adding health to the player ship and the boss

FrimanFriman 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

Best Answer

  • gamesfuagamesfua Posts: 723
    Accepted Answer
    Once 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

  • gamesfuagamesfua Member Posts: 723
    I don't know what manual you're talking about @friman but the answer to your question is yes.
    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?
  • FrimanFriman Member Posts: 55
    @anatomyofdreams Then I downloaded Game Salad I could also download a manual/tutorial that explained how to use Game Salad and it teaches you how to make a game.
    See the link below to find the manual:
    https://www.dropbox.com/s/e066r9f8m9h1cyz/GameSalad Creator for Mac Manual.pdf
  • gamesfuagamesfua Member Posts: 723
    @friman ah i see. Thank you. Didn't know about that. Anyways, did my answer help you out? Let me know if you need any further explaination.
  • FrimanFriman Member Posts: 55
    @anatomyofdreams well I would appreciate some help, in the manual it mentions that you can add a base health to both the player ship and the boss with the value of 100.
    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.
  • gamesfuagamesfua Member Posts: 723
    @friman right. Perfect. See how it says add 2 new integer attributes? That's what i was talking about. So lets focus on player health. That's the main character. The integer attribute is like a counter. It records a numerical value of something. In this case the players health.
    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 :)
  • FrimanFriman Member Posts: 55
    @anatomyofdreams thanks for helping me out but I still need some more help.
    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.
  • FrimanFriman Member Posts: 55
    @anatomyofdreams I realized what I did wrong and due to that I didn't look closely enough I wouldn't have solved it.
    Thanks for the help!
  • RatedPGRatedPG Member Posts: 7

    I downloaded Game Salad I could also download a manual/tutorial that explained how to use Game Salad and it teaches you how to make a game.

    Did you follow the manual's instructions on the Boss Ship (pp 17-18)? The Boss Ship did not move until I took it out of the Timer Rule.

    I don't know if the manual was wrong or if I did something wrong.

  • VolontaArtsVolontaArts Member Posts: 510
  • MiniKimMiniKim Member Posts: 2
    edited June 2014

    @Friman said:
    anatomyofdreams I realized what I did wrong and due to that I didn't look closely enough I wouldn't have solved it.
    Thanks for the help!

    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 !!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Don't resurrect old threads just start a new one.

  • MiniKimMiniKim Member Posts: 2

    Ok ! I found how to give my Player ship a starting health value of 100 :)
    For other beginners like me, just follow these instructions :

    • Go to your Aerial Combat Scene
    • Click on Attributes
    • Click on the "+" button
    • Select "Integer"
    • Valid by clicking "choose"
    • Then a new attribute is created in your attributes list. The new attributes is named "New Attribute". You just have to rename it "Player Health" or "Boss Health" and give it a value of 100

    Hope it will help other beginners who are blocked in the tutorial !

Sign In or Register to comment.