Help With a Flicking Game

I've been trying to make a game where you flick a ball and try to hit a target. I can't quite figure out how to make the flicking part without having the player be able to drag the ball all over the level. I was thinking of having some sort of force field that they can flick inside of or make it where it only moves after you finish the flick. Any help is appreciated!
Thanks.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    @Osci22

    Here's a demo (attached) hope it offers some clues . . . . .

  • Osci22Osci22 Member Posts: 7
    I couldn't figure out how to read this file. Do I drag it into Game Salad?
  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2013
    @Osci22
    I couldn't figure out how to read this file. Do I drag it into Game Salad?

    You should just be able to double click on it and it will open (it's a standard GS file) . . . .

    Are you on a PC ?

    Try sticking .gameproj onto the end of the file's name . . .

    If that's not working I can simply post the rules here . . . . . . hold on, I'll just do that . . . . . back in a second . . . .
  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2013
    Rules . . . .

    Larger image: http://oi43.tinypic.com/23hszlj.jpg

    image
  • Osci22Osci22 Member Posts: 7
    Rules . . . .

    Larger image: http://oi43.tinypic.com/23hszlj.jpg

    image
    Thank you so much! I am on PC so that's probably why I couldn't open it. Anyways, will the player still be able to drag the ball wherever they want or will they just be able to flick it in the direction they want?

  • DuesDues Member Posts: 1,159
    An easy way to do it would be to set it up so that your flicking only works when your X position i less then a specific number.

    When attribute "X" is less then (any number) then flick.

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2013
    @Osci22
    Rules . . . .

    Larger image: http://oi43.tinypic.com/23hszlj.jpg

    image
    Thank you so much! I am on PC so that's probably why I couldn't open it. Anyways, will the player still be able to drag the ball wherever they want or will they just be able to flick it in the direction they want?

    This will allow you to drag stuff and around and flick/throw it where you want . . . .

    P.S . . . . the two constrain rules . . . . they are self.Motion.Linear.Velocity.X and self.Motion.Linear.Velocity.Y
  • Osci22Osci22 Member Posts: 7
    @Osci22
    Rules . . . .

    Larger image: http://oi43.tinypic.com/23hszlj.jpg

    image
    Thank you so much! I am on PC so that's probably why I couldn't open it. Anyways, will the player still be able to drag the ball wherever they want or will they just be able to flick it in the direction they want?

    This will allow you to drag stuff and around and flick/throw it where you want . . . .

    P.S . . . . the two constrain rules . . . . they are self.Motion.Linear.Velocity.X and self.Motion.Linear.Velocity.Y
    Yeah, is there a way to make it so that you can't move it all around the level?
    I was thinking I could do something like constrain it to x and y until you release your finger. Would that work?


  • Fal01Fal01 Member Posts: 460

    Is there a way to do this without dragging the actor around?

    I want to be able to flick a static actor in the direction of the swipe like taking a penalty in football (soccer).

    Thanks for any help :D

    It’s not a bug – it’s an undocumented feature

Sign In or Register to comment.