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..
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.
@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.
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...
@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.
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
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.
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 )).
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
YourSportTV 1 week ago
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..
YourSportTV 1 week ago
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?
MinecraftNerds9001 1 month ago
all of the walls work except for the right wall. does anyone know why that is?
lindseyf96 3 months ago
Man, you are the best. Thanks so much!
ubudog32 4 months ago
This has been flagged as spam show
Do You want Free iPad 2? More info at: goo.gl\QyzJ5
jedrutiaj 5 months ago
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??
megadeath1555 5 months ago
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?
Cardali 6 months ago
Thank you for the tutorial, I learned a lot!
Diertstarr 7 months ago
Thank you so much...
MAULIK008 7 months ago
Thanks for the tutorial!
ierict 8 months ago
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 8 months ago
@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
Diertstarr 7 months ago
Hi!
Where can I download the source code and files for this?:) Thanks.
jrhitokiri 8 months ago
Its not clear to me if its possible to use corona SDK for making an IPAD game
on a windows environment?
ddjazz 8 months ago
@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.
tnoamen 7 months ago
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?
dahDougieBoy 10 months ago
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.
dahDougieBoy 10 months ago
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.
CGPacifica 10 months ago
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
LeivaGames 11 months ago
i have done an app on android platform how to put it on iphone using corona
1920chintu 1 year ago
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...
TVRedarrow 1 year ago
and also, why cant I build?
TVRedarrow 1 year ago
function moveBalloon(event) balloon:applyLinearImpulse( 0, -0.2, balloon.x, balloon.y )
end
balloon:addEventListener("touch", moveBalloon)
TVRedarrow 1 year ago
local balloon2 = display.newImage("ball_blue.png")
balloon2.x = balloon.x - 105
physics.addBody(balloon2, {bounce=0.4} )
local balloon3 = display.newImage("ball_blue.png")
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("touch", moveBalloon)
TVRedarrow 1 year ago
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.png")
balloon.x = display.contentWidth/2
physics.addBody(balloon, {bounce = 0.5} )
The other part will be on the next comment
TVRedarrow 1 year ago
@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.
ninjapig123 1 year ago
i cant get my walls to work!
Sonic70o 1 year ago
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.
gangsta28ny 1 year ago
what would the code inside the parenthesis be for an invisible floor?
sullyBcool 1 year ago
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.
mylesblasonato 1 year ago
Hi
I understand everything except how this line works, I would love it if someone could help :)
local balloon = event.target
toydoll89 1 year ago
thumbs up for the Miles Davis, the awesome vid, and the 10,000+ gmail messages.
balasuar 1 year ago 29
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??
smartgreeks 1 year ago
Did you type it up before you did this then copy?
sherlockturtle 1 year ago
can i download corona sdk on my ipod and program therir or do i need a mac?
rockhopper123452 1 year ago
@rockhopper123452 you need a mac.
ritec 1 year ago
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 1 year ago
@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.
afternoonish 1 year ago
@geothan5168 im having the same problem
jerlyndr8 1 year ago
@geothan5168 I have the same problem, can we get some help on this? gracias...
123algproductions 1 year ago
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.
GEEKcron 11 months ago
very nice indeed!
also a good reminder to not try sending you an email :)) that's a helluva full inbox! :)
koz 1 year ago
nice video :)
where is the other video with the better matching physical bodies?
cgcral 1 year ago 11
thanks, I didn't know about the event.target thing, so helpful.
Would like to see a tutorial about physics joints really soon, please.
cmontesino 1 year ago
cool.....very simple
xXChinesXx 1 year ago