Two Questions. Please Read!

DanielAvniDanielAvni Member Posts: 114
edited November -1 in Working with GS (Mac)
Ok 1st question How do i make it so when i touch/mouse down, i spawn an animation that kills the enemy, i know how to make it so when the animation colloids with the enemy it gets destroyed. Sorry if i made it confusing

2nd Question, lets say im making an rpg i would i make a inventory and once i do make it so i use the item my char looks like hes holding it, do i have to re draw the actor with ech sword/armor he might have?

Sorry if i made this really bad just ask me to clarify if u dont get what im asking
Thanks Daniel

Comments

  • DanielAvniDanielAvni Member Posts: 114
    I dont mean to be inpatient but can someone please help me?
  • butterbeanbutterbean Member Posts: 4,315
    1) I don't have Gamesalad open right now, and not sure I know what you're wanting to do, but I think all you'd have to do is:

    Within the actor you want to destroy:

    Rule: If mouse/touch is over actor:

    Spawn: (Whatever actor it is you want to spawn) and give it a timer rule like "for 2 seconds" spawn actor, and place the coordinates relative to the actor and tweak it

    Then after 2 seconds: destroy this actor

    Since I don't have GS open, not sure if this is the way to do it... but give it a shot

    2) If you want an actor, say zelda style, to pick up a sword, then yes, you'd have to have a separate character holding the sword, so you would have to change the image to the character now holding the sword.

    So you'd destroy the sword, and then the new actor would be the new image of the one holding it

    Hope this helps, sorry if I wasn't understanding your question
  • DanielAvniDanielAvni Member Posts: 114
    You helped a lot with the 1st question
    About the second question i guest RPG's are not happening in my near future haha

    And how do i make it so i have to kill like 10 to beat the level and theres a countdown?
  • quantumsheepquantumsheep Member Posts: 8,188
    You make a variable (integer) called 'Target to beat' (or whatever you want to call it).

    In your enemy actor, under the 'destroy this actor if he's touched' rule, put in a 'change variable' condition that says:

    Let Target to beat = target to beat + 1

    Then make a different actor called 'Level control' (or again, anything you want).

    Within this new actor put in a rule - if Target to beat is greater or equal to 10, then go to next scene.

    That should do it.

    Hope that helps,

    QS :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.