Added: 1 year ago
From: anscamobile
Views: 28,516
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (48)

Sign In or Sign Up now to post a comment!
  • I have a question! when i finish to do it, how can i upload it to my mobile or to a place where i can download it? :/ bfff i dont know it

  • I did all, and my game goes well, like the video. For the people who have problems.. u only have to copy exactly what he writte, not more. be sure all is ok, cause i did some words wrong and my game was going bad xd..

  • i have some code that makes it so i can draw lines. after entering in physics.setDrawMode("hybrid")

    i saw that the lines are just HUGE boxes

    how do i fix this?

  • all of the walls work except for the right wall. does anyone know why that is?

  • Man, you are the best.  Thanks so much!

  • help! when i try to install any thing on android 2.3 , it just keeps saying (on the device) application not installed is because in the build options, the target os comparability only supports android 2.2??

  • I'm having an issue with my game. Its essentially the same thing just with different graphics. My 'character' graphic doesn't behave in the same way the balloons do. After changing my listener to work on event, instead of balloon, when I click to one side of it, it spins - but doesn't move to the side.

    Any ideas on what I missed?

  • Thank you for the tutorial, I learned a lot!

  • Thank you so much...

  • Thanks for the tutorial!

  • Everything works for me except for the physical ceiling and floors

    I can tell the image shows up because if I increase the size of the left one, I can see a white bar that spans the height of the screen.

    What could be the problem? (I have checked the spelling 1,000,000 times)

    Also, I have noticed that the order in which you place the code is important. How do you know what order to use?

  • @starscater I experienced the same thing: order of the code, and could not get the walls to work.

    I also noticed the physics seem slightly different from what was described. I'm guessing the video is from an earlier version of corona.

    P.S. I am working on the Android platform, if that makes a difference

  • Hi!

    Where can I download the source code and files for this?:) Thanks.

  • Its not clear to me if its possible to use corona SDK for making an IPAD game

    on a windows environment?

  • @ddjazz Can only make for Android in Windows. Apple is predictably lame and requires that developers for its products are running Mac OS, which of course can only be legally run on Macs.

  • This can't be right. I did a quick test in Corona & Cocos2d. I had just a bunch of sprites bouncing between the screen edges, no physics used at all. In Cocos2d I used a CCSpriteBatchNode and in Corona I used just a list of display.newImage's. In Cocos2d it dropped below 30fps after around 750 sprites. And in Corona I was well over a 1000 sprites before it dropped below 30fps. Shouldn't it be the other way around? I thought Corona didn't batch sprites?

  • How is the performance when you start adding sprites, like hundreds of particles in addition to a lot of npc's etc ? After what I understand it doesn't batch sprites or does it?

    I like the idea if rapid development, but not if it would decrease my framerate to 15fps over even lower for something I get in 30fps using i.e. cocos2d.

    Would be interesting to hear peoples thoughts about this.

  • Hello. Thank you for the video.  However I also am not getting the balloon to move laterally, only upwards, despite the event.x and event.y modifications. Any help would be greatly appreciated.

  • Great Video I started working with corona about 3-4months ago and I had

    0% programming experience and My app just went on sale 2 days ago

    Look for DraggingPhysics in the app store! Thank You Corona and all

    this great tutorials

  • i have done an app on android platform how to put it on iphone using corona

  • Why does the ball keep on bouncing forever when it is 1mm away from the floor?

    Why does my static impulse make the ball fly away so high?

    Why is it that when I add 2 other balls, they all end up on the left side while 2 of them falls and the floor is gone...? Please help... I am a begginer and am trying to develop a good app...

  • and also, why cant I build?

  • function moveBalloon(event) balloon:applyLinearImpulse( 0, -0.2, balloon.x, balloon.y )

    end

    balloon:addEventListener("touc­h", moveBalloon)

  • local balloon2 = display.newImage("ball_blue.pn­g")

    balloon2.x = balloon.x - 105

    physics.addBody(balloon2, {bounce=0.4} )

    local balloon3 = display.newImage("ball_blue.pn­g")

    balloon3.x = ballon.x + 105

    physics.addBody(balloon3, {bounce=0.3} )

    local floor = display.newImage("ground.png")

    floor.y = display.contentHeight - floor.stageHeight/2

    physics.addBody(floor, "static", { bounce = 0.0})

    balloon:addEventListener("touc­h", moveBalloon)

  • Hey guys, I just added the code from video 2 and suddenly the floor is gone and the other balloons are together on the left side, This is my code:

    local physics = require("physics")

    physics.start()

    physics.setGravity(0, 4.9)

    display.setStatusBar( display.HiddenStatusBar )

    local background = display.newImage( "brick.png" )

    local balloon = display.newImage("ball_blue.pn­g")

    balloon.x = display.contentWidth/2

    physics.addBody(balloon, {bounce = 0.5} )

    The other part will be on the next comment

  • @gangsta28ny you have to have your objects in a function in order to remove it. In this sample code orbs are circles already added to the screen. Here's the code:

    local function trackOrbs(obj) obj:removeself();

    end

    That removes the object from the screen. Hope this helped.

  • i cant get my walls to work!

  • How would code something like, I want to touch the balloon to make it pop. How will I be able to do this?

    Can anyone tell me?

    Send me a message or reply.

    Yes, I'll say it. I'm a noob.

  • what would the code inside the parenthesis be for an invisible floor?

  • event.target contains the object that the event is attached to.

    balloon:addEventListener(blah, blah)

    The above line of code shows that the event is attached to balloon.

  • Hi

    I understand everything except how this line works, I would love it if someone could help :)

    local balloon = event.target

  • thumbs up for the Miles Davis, the awesome vid, and the 10,000+ gmail messages.

  • so i wrote the same code that was used in the video and i tried to run it in the simulator and it wouldn't run. when i ran again in the corona terminal i got this

    2011-01-18 18:31:03.185 Corona Simulator[646:903] Got error in FileWatch lastTimeModification

    can anyone please help me get this work??

  • Did you type it up before you did this then copy?

  • can i download corona sdk on my ipod and program therir or do i need a mac?

  • @rockhopper123452 you need a mac.

  • Hey I have a question I did exactly what you said but my ballons don't move side to side, the just go up and down. I added the event.x and event.y but still nothing worked. please help.

  • @geothan5168 you need to fix your impulse direction. You probably set it to (0,-0.2) or something, while it should be a function of the touch location.

  • @geothan5168 im having the same problem

  • @geothan5168 I have the same problem, can we get some help on this? gracias...

  • I have the same problem that @geothan5168 experienced. I'm using primitive objects (circles) instead of images. I have the exact same line that the video shows (balloon:applyLinearImpulse ( 0, -0.2, event.x, event.y )).

    Any help would be appreciated.

  • very nice indeed!

    also a good reminder to not try sending you an email :)) that's a helluva full inbox! :)

  • nice video :)

    where is the other video with the better matching physical bodies?

  • thanks, I didn't know about the event.target thing, so helpful.

    Would like to see a tutorial about physics joints really soon, please.

  • cool.....very simple

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