Can someone help with a couple of problems?

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
1. How do you make a ball keep bouncing left and right without using collide to make it bounce?

2. When my iDevice warns of low battery or I get a text msg, the music in my game stops working. Everything else works fine apart from the music. How do I fix this?

Thanks

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    VeiraGames said:
    1. How do you make a ball keep bouncing left and right without using collide to make it bounce?

    2. When my iDevice warns of low battery or I get a text msg, the music in my game stops working. Everything else works fine apart from the music. How do I fix this?

    Thanks

    1. why can't you use collide?
    2.I don't think you can solve this problem in GS now

    __________________________
    http://www.thatgameforum.com/
    http://itunes.apple.com/vn/app/candy-popp/id419541695?mt=8
    http://gshelper.com/
    http://cookbook.gamesalad.com/
    http://marketplace.gamesalad.com/
    http://www.youtube.com/user/GameSaladCookbook#p/
    http://gamesalad.com/wiki/
    http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./Home.html
    http://www.gamesalad.es/
    http://thatgameforum.com/threads/gs-videos.360/
    my email: calvin9403@hotmail.com
    my skype: calvin9403
  • zombieaddictzombieaddict Member Posts: 213
    why dont u use a timer for the bouncing?

    rule if actor receives touch is pressed

    for 1 second (or whatever) move up

    after 1 second

    for 1 second move down
  • VGXVGX Member Posts: 796
    collide is crap for rounded actors it will at some point bounce off the screen.

    I am trying to update my game and i don't want to use collide. I have seen games made in gamesalad that have actors, balls, platforms, whatever... keep moving from left to right nice and smooth and what to know how that it done so I can remove collide and put the correct attribute.

    Does anyone know?
    Thanks
  • VGXVGX Member Posts: 796
    All I need it the correct rule/attribute to fix this please
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Do a search in the GameSalad splash screen for a template that has a bouncing ball.
  • VGXVGX Member Posts: 796
    that doesn't help me. What I want is the ball to KEEP bouncing left and right WITHOUT using collide. because collide rule just makes the ball eventually bounce off the screen. I can't find any info on this anywhere.

    can someone please tell me how to do this?
  • StusAppsStusApps Member, PRO Posts: 1,352
    1. Try playing around with a change attribute on the linear motion of the object. For example if it collides with a horizontal wall have it:

    Change attribute
    self.motion.linear velocity.y to -self.motion.linear velocity.y

    and do the same for the x when it hits a vertical wall.

    2. The problem is a bug that changes the music volume to 0. find a rule that happens often in your game (ie. actor being touched or a score) and set a change attribute for the music volume back to 1.
  • TheHooglerTheHoogler Member Posts: 102
    What is the purpose of the bouncing ball? If it is going to be affected by a variable (your touch), then collide is probably best. But, if you want it to move like a platform in an aethetic manner, then you can try interpolating the x coordinate. You'll have to play with the timing, but it should be nice and smooth.
Sign In or Register to comment.