FINALLLLYYY im making my game but i got a few questions!

DanielAvniDanielAvni Member Posts: 114
edited November -1 in Working with GS (Mac)
Well im going to official introduce my self my name is daniel avnieli and i am 14 years old (turning 15 on april 14 :) and i finally got my graphics from this guy and im going to start my GAME! Once its made im going to buy the basic version of gamesalad. AND GET IT on the iphone!

Ok to start off i want to make it so when i touch the enemy or press the mouse on the enemy it shoots a cannon ball towards the direction of the enemy and hits him. (i know how to do the heath and all the other stuff like that) i will ask my other questions after this one :)

Thanks so much and cant wait to be part of the GS community! haha

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Welcome!

    Try this (it should put you in the right direction)

    Create two game integer attributes called enemyX and enemyY

    Create an actor called canonball

    In the canonball actor put a change velocity behavior. Set the speed to whatever you want. For the angle go to the expression editor and press the little "e". Then select vectorToAngle
    replace the (x , y) with

    (game.enemyX-self.position.X , game.enemyY-self.position.Y)

    In the shooter actor create a rule that says

    when touch is pressed

    constrain game.enemyX to touch1.X
    constrain game.enemyY to touch1.Y

    This way the cannonball will move towards the spot that you touch.

    Good luck!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Woops I forgot to add that after the two constrain behaviors you need a spawn behavior to spawn the canon ball. duh!

    hope that helps
  • DanielAvniDanielAvni Member Posts: 114
    ok i have a few questions ok i have the base of the cannon in around the middle of the screen i might not have made it so when i press the mouse button down and it plays an animation thing right i want it to shoot from the base to the enemy
    sorry i didn't state this in the 1st place
    i have a few questions on this game and stuff should i post it in a new thread??
  • DanielAvniDanielAvni Member Posts: 114
    can anyone please help me
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    How new to this are you? Have you opened any of the templates in the new category or the shared templates? I would recommend looking closely at how those work, before starting from scratch. Then try to get simple things working. Like before trying to get a cannon to shoot at an object make sure you know how to make an object move. Then try making an actor that when clicked spawns the moving actor. Then try to get the moving actor go where you want it to go.

    Good luck!
  • JGary321JGary321 Member Posts: 1,246
    I agree with scitunes. Hey mate we got a real friendly community here that loves to help when it can, however it typically will not answer very basic questions that can be found in a tutorial or wiki.

    I would honestly do nothing for the first week except study the wiki & some of the demos people have shared. tshirtbooth has a youtube page you can check out too.

    This is in no way meant to sound mean, definitely not my intention, but we basically all learned this way. Don't worry soon you'll be on to creating you masterpiece.

    JGary
  • DanielAvniDanielAvni Member Posts: 114
    haha kk ill go look up and stuff sorry and thanks
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    No need to be sorry, man! I just got the impression that you were new enough that you didn't really know what to ask, if you know what I mean. Don't be afraid to ask questions, but the wiki (support) and the templates in GS creator are the best place to start. Don't give up!
  • DanielAvniDanielAvni Member Posts: 114
    im not im hopping to get some extra cash from this and be pritty happy for a 14 year old ahha :)
    my dads helping me out with most of the money problems (im paying him back if the app does well) i just need to learn all the things about gamesalad and scitunes ur book game is pritty awesome ahah
Sign In or Register to comment.