Added: 1 year ago
From: TheEagle1100
Views: 1,062
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • hey, i have a question do you know how to make random numbers exactly between 0.01 and 0.04.

    please help me

  • Hi, I need a little help, maybe you can help me.

    How I can randomize two images?, I just want to display one, but random.

    I hope I can help.

    Thanks.

    Sorry for my bad English

  • @ulbricho Use arc4random(), and get a random number between 0 and 1, and use image one if it is 0, or image 2 if it is 1.

  • @TheEagle1100 OMG! You're great, thank you very much!

  • I pretty much got all the code down down expect the part ball.center = CGPointMake(ball.center.x + ballVelocity.x, ball.center and the rest is cut off the screen.Whats the rest?

  • Wheres the source code?

  • @johnydee187 I have it. If you pm me your email address, then I will send it to you.

  • @TheEagle1100 thanks for the response.i actually paused like crazy to get the code down.Would of been easier if you had xcode in full screen haha...And i figured out the missing code thats cut off the screen.But yeah you should do more xcode tut,maybe something like adding a timer to count down than after it reaches 0 it will go to the next scene..

  • @johnydee187 Yeah, I'll probably do some more tutorials at some point, but I'm really busy with school right now.

  • How to do this thing with 2 images???

  • I PM'd you the code for the gameLoop.

  • when you coppy the - (void) gameLoop you cant see whats after ball.center = CGPointMake(ball.center.x + ballVelocity.x, ball.center and what is after if (ball.center.y >= self.view.bounds.size.height - 16) {

     [self setRandomBallSpeed]; if (ballVelocity.y > 0) { ballVelocity.y

    gr8 video anyways

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more