pssst…hey Nerderer, did you get my e-mail? If you can let me know or give me a short reply I would appreciate it.
Thanks.
…sip…
[import]uid: 8045 topic_id: 5505 reply_id: 25272[/import]
pssst…hey Nerderer, did you get my e-mail? If you can let me know or give me a short reply I would appreciate it.
Thanks.
…sip…
[import]uid: 8045 topic_id: 5505 reply_id: 25272[/import]
It would be nice to add the image as a resource then stamp it on the screen. like how tiled editor does [import]uid: 12088 topic_id: 5505 reply_id: 25275[/import]
@cl-apps: Yes, I guess you could use the custom code with some dummy objects. Never thought about it myself, but it’s really a good idea that I might use myself.
Hmmm… I also get some weird results with some images. Seems like some images won’t get their real image size if I skip setting the size when the Lua code is generated. Strange, and it’s more of a bug in Corona. Most images works fine, though, at least when I test here. Could you try using a couple of different images and see if they always behave that way? Guess I’d just have to go back to generating the size even if the item is not resized.
@luna: Yes, sorry! I got your mail but I just haven’t had the time to really look at your examples, since I’ve been really busy the latest days. I’ve flagged it though, and I promise that I’ll take a look really soon!
@yuewah: I’ve heard the same from someone else, so I’ll make a note about it. [import]uid: 13180 topic_id: 5505 reply_id: 25293[/import]
Testing some more there seems to be a lot of strange things happening to large images. Not in Gumbo, but in the Corona simulator. Images not getting their real sizes and positions, or being scaled wrong. [import]uid: 13180 topic_id: 5505 reply_id: 25294[/import]
Hi Nerderer,
Would you want to look into
The option of listing the resources from a directory to drag drop onto the canvas, it is a bit tedious adding an object and then setting the graphic and sometimes repeatedly (Clone is handy sometimes)
Have the option to snap to grid, and maybe snap to another element for alignment purposes. You already have the grid.
Change the colour of the background screen from Black, it is a bit hard to see the grid and the screen at times.
These are not super urgent, but shall make things easier for developers.
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 5505 reply_id: 25371[/import]
One thing that i have found is that if you have images over 2000 pixels wide it fails to display and will display as just “white” as far as i can tell this is just the “limit” im not sure what the height limit is though. My game has very wide levels so i learned this quickly [import]uid: 19620 topic_id: 5505 reply_id: 25503[/import]
I’m new at Corona and this game physics stuff. I just finished using SpriteDeck to layout my screen and export for Corona with physics, but then discovered that I needed polygons, and at the same time discovered Gumbo. What a great tool. Thank you.
So I opened my dynamic images (one by one) in Gumbo, created polygons and the lua code. I copied just the resulting shape table and modified my lua project as shown below:
Before:
physics.addBody(rainychick_1, “static”, {density = 1.0, friction = 0.3, bounce = 0.2})
After:
local shape_3 = { -6,-78, -37,-39, -43,73, 28,78, 43,-10, 20,-54, 12,-63, 4,-71 }
physics.addBody(rainychick_1, “static”, {density = 1.0, friction = 0.3, bounce = 0.2, shape=shape_3})
This worked fine working with Gumbo on my PC and changing my Corona file on a Win editor. But today I fixed one last image on Gumbo while working on my Mac, and the result keeps crashing the simulator, with following error:
Assertion failed: (area > 1.19209290e-7F), function ComputeCentroid, file /Users/ansca/.hudson/jobs/Main-DMG/workspace/platform/mac/…/…/external/Box2D_v2.1.2/Box2D/Box2D/Collision/Shapes/b2PolygonShape.cpp, line 127.
/Applications/Corona.268/Corona Terminal: line 9: 234 Abort trap “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout
I can’t believe the problem comes from using the Mac instead of Win, can you? But I don’t yet know enough about the inner workings of all this. I installed Gumbo locally on the Mac, and was told that I had to change to 32-bit mode. So I guess I was in 64-bit mode before. Would this be relevant? I also noticed that the lua code generated on the Mac used real numbers in the shape table instead of integers as before on Win. So I rounded them all down, but still get the error.
[import]uid: 23636 topic_id: 5505 reply_id: 25513[/import]
I also get a crash using:
local shape_3 = { -6,-78, -37,-39, -43,73, 28,78, 43,-10, 20,-54, 12,-63, 4,-71 }
physics.addBody(rainychick_1, “static”, {density = 1.0, friction = 0.3, bounce = 0.2, shape=shape_3})
I believe this is because you have to place the coordinates clockwise. So do the same shape but do it in the other direction.
Did you all know by the way that you can edit the shape names in the Shape Editor? Just double click the name in the list to change it.
[import]uid: 13180 topic_id: 5505 reply_id: 25548[/import]
@jayantv: Noted.
@madjack: Yes, I get a white image too on some of them. And sometimes the image gets all distorted.
@Bruce Martin: Have you followed the rules for how to create shapes? For example, they can’t be concave.
I don’t know exactly why you get integers in Windows and decimals in Mac, but the rendered code should be the same. Did you zoom in while placing your coordinates? That way you can get .5 pixels, which should be okay in Corona, since it allows decimals in points.
If you still can’t solve it then please post an example of your code/points. [import]uid: 13180 topic_id: 5505 reply_id: 25547[/import]
Hi Nerderer,
Yes, going clockwise to define the polygon fixed the problem. I also did not know about not using concave shapes. Where can I find documentation on the rules? [import]uid: 23636 topic_id: 5505 reply_id: 25559[/import]
Finding things in Coronas documentation is not that easy, and I hope they redesign it. But I found this:
http://developer.anscamobile.com/content/game-edition-physics-bodies
Look under “Polygon bodies” and you’ll get some more info. [import]uid: 13180 topic_id: 5505 reply_id: 25564[/import]
@nerderer, could you get in touch with me over email. my email is is Info[DOT]OZApps[AT]gmail[DOT]com
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 5505 reply_id: 25644[/import]
@Bruce Martin, I guess you can also try an app like Physics Editor (reviewed here http://reviewme.oz-apps.com/2011/02/how-about-you-change-gravity-of-this.html )
This allows you to create the polygon for the image.
RIght now we are running a promotion, so if you read the article, follow @reviewme and RT the message at the bottom of the screen, you could win a free license to Physics Editor from Code’n’Web
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 5505 reply_id: 25646[/import]
Hi Nerderer. Love the tool. I am trying to setup a very large level 10000PX wide or more. Any way you can extend the grid that far? It seems to stop at 1000px, or so. [import]uid: 8192 topic_id: 5505 reply_id: 25677[/import]
@Nerderer. Got some more feedback
Very promising program. I am trying to get a bezier curve going with physical bodies. If you can figure out how to integrate that into your program it would be a killer.
What I mean if for people to draw a line with their mouse and Gumbo automatically generating a bezier curve out of that with rectangular segments that have a body. That way an object can collide and slide on it if wanted.
Carlos has some code on bezier curves, I believe. [import]uid: 8192 topic_id: 5505 reply_id: 25686[/import]
I’ve been getting what I think is the Silverlight white screen of death in Firefox - and had it for a time on the standalone…
but today I got the Gumbo update and it works in Safari and standalone… still ng in Firefox, but I’ll figure that out when time permits…
Thanks for the useful tool.
[import]uid: 34130 topic_id: 5505 reply_id: 25675[/import]
@dhallowell: Never seen this myself, but by Googling it I can tell that others have had the same problem. I’ll look into it. Have you tried uninstalling Gumbo and reinstalling it again? Uninstall by right clicking anywhere on the screen.
@amigoni: Hadn’t noticed that myself, but it’s a bug. I’ll see what I can do about it.
@amigoni again: There is no copy/paste function at the moment. Instead you clone your objects by pressing C. No need for Cmd. I might change these shortcuts at a later stage.
Selecting multiple objects is not possible at the moment. It’s something I’m aware of though, and I agree that it would be really useful.
You can easily group items with this code:
myGroup:insert(#this#)
#this# will be replaced by the object name.
[import]uid: 13180 topic_id: 5505 reply_id: 25699[/import]
Still loving Gumbo – a couple things, though
-The editable text fields go inactive on me, too. All is fine at first, but right after I load an image the text input goes dead (well, almost… ‘delete’ still clears the default, but you can’t enter any new characters, and the default re-appears on exiting the field)
-I’d like to have an option to ‘resize the imported image to the Gumbo object size’
Not expecting miracles – but thanks for any help on those.
Cheers
[import]uid: 34130 topic_id: 5505 reply_id: 25920[/import]
Fields going inactive is kind of strange. I still haven’t seen this myself, but I’ll try my best to reproduce the bug. Does it only happen after you load an image, and does it always happen after you load an image?
Resizing images to the object size is on my list. It will probably be added very soon. [import]uid: 13180 topic_id: 5505 reply_id: 25929[/import]
From what I can see – inputs seem to work fine with any number of gumbo starter objects. I can move around between them, change things, etc. with no problem.
As soon as I load one image the fields go ‘dead’… meaning that the only active key seems to be ‘delete’ which seems to clear the field… but no other input is allowed…and on leaving the empty looking field (and I just noticed this) - the *original* gumbo assigned default name reappears (dispObj2, or something like that)…even if I had entered another name there before loading the image.
Not a showstopper, of course, but you can see that the workaround involves editing the lua file, taking away from the easier workflow that Gumbo offers.
Thanks again for any help sorting that out.
[import]uid: 34130 topic_id: 5505 reply_id: 25935[/import]