HOME | DD

0rava — Demolition X

Published: 2009-10-08 16:48:28 +0000 UTC; Views: 19256; Favourites: 38; Downloads: 307
Redirect to original
Description WIP - 0.9.3
Oh look ^ Fancy version number

FAQ:
Q: This doesn't work!
A: Click it to focus on the flash

Q: This still doesn't work!
A: Check the 'Mode: ' from the side, it probably says interact, you can not draw while in that mode, press M.

Q: Why did you add modes, they're so complicated <.A: To fix some bugs, in the oldmode sometimes a rectangle spawns while dragging, and pressing keys to draw something or drag sounds like effort.

Q: Can I see the code?
A: No. But feel free to ask about anything if you'd like and I'll see how much I can help.

Q: Why is everything keyboard controlled and not, for example, visual?
A: Try drawing a box/circle on top of a textfield on the right. Same happens with buttons. But maybe I could add a visualmode where you could change the variables only, we'll see.

Q: Can I suggest more stuff to add there?
A: Please do so, running out of ideas myself.

Q: Why is the Artist's Comments so %#"$& long?
A: I want new people who see this be able to check the progress and read a bit more specific instructions.

Q: OMG THIS R SUPAR KWL?
A: Yes.

Q: How to save/load?
A: Create boxes, copy the text in the blacklined box on the right, save it somewhere, when you come back, or when your friend wants to check it, paste it in the blacklined box, press outside the box to unfocus, press V and your boxes should load. Only works on boxes, and it doesn't save their rotation or joints.
Example: |222.5|123|5.5|43|246.5|161.5|29.5|5.5|313.5|125.5|27.5|44.5|365.5|125.5|6.5|42.5|385.5|163|26.5|5

Q: Why doesn't my camera work?
A: Are you on 7? Mine worked fine on XP, changed on 7 and it stopped working, can't confirm anything on Vista.


Instructions:
Build your own stacks.
Click+drag to make a box, Ctrl+Click+Drag to make a circle.
Hold Shift + click to drag objects
Hold Q + mouseover to move an object, this also puts objects to sleep, if not already.
Mouseover + Del to delete an object (Delete lots of shapes fast by moving mouse around rapidly while holding Del)
1-4 to spawn a stack of shapes, lowest shape is on mouse position and others upwards from that.
Arrowkeys to change selected value. Changes apply only to newlymade shapes.
A/S/D to place a corner of a triangle W to create the triangle
Z to create ragdoll on mouse (head on mouse)
X to create bridge on mouse (the leftmost plank on mouse, others rightwards from that)
J to create object-background joint
K to create object-object joint (hold K, click on an obejct, hold mouse, release on another object to create joint)
Y + click an object to delete the most recently made joint of the object.
M to change the mode.
N to change to oldmode.
Numpad to control camera - 1-4 & 6-9 to move it around, +/- to zoom, 5 to reset.

Restitution means how much things bounce. Density is their weight (0 is a static object). Friction is friction.

Joints:
Revolution Joint (K) = Motor joint, if you set enough motor speed and torque, the second object (the one under mouse on release) will start spinning.
Distance Joint (L) = Simple rigid joint between objects, is created between the point of click & release.
Gear Joint (H) = Will joint 2 objects to the background and make their rotations dependent on each other.
Prismatic Joint (G) = Jointed in the background, but allowing movement within a line (set (x,y) in variables)
Mouse Joint (J) = The joint you use in dragging.


To do:
- Apologizing watchers for spamming new versions
- Properly-working triangles

The lower an item is on the list, the more likely I am NOT to do it, thanks to my close-to-none-AS3 and Box2DAS3 skills. But feel free to suggest.

Changelog:
[Date
From/To version
- Changes]

[9.10.
Random test/0.7
- Changed gravity from 10 to 20
- Changed shape dragging from 'shift' to '1'
- Added shape moving on '2'
- Added shape deleting on '3']

[24.10.
0.7/0.8
- Changed shape dragging from '1' to 'shift'
- Changed shape moving from '2' to 'Q'
- Changed shape deleting from '3' to 'Del'
- Added box-drawing
- Changed starting shape from circle to box
- Added premade stacks to '1-4'
- Removed small rectangle with no purpose from upper corner
- Encountered a bad bug -> got rid of preview while drawing, sorry~ Will fix it later if I figure it out]

[25.10.
0.8/0.8a
- Fixed the drawingbug
- Added density/friction/restitution-changing on arrowkeys for all shapes, including stacks.
- Added textfield to display values (if you rollover it while drawing, your shape will go crazy tho.)
- Added total reset on R
- Added build walls on B
- Deleted the ball (you can now make the same on your own)]

[25.10.
0.8a/0.8b
- Changed variable changevalues
- Fixed a density-changing bug
- Stopped renaming the title to make links not break]

[25.10.
0.8b/0.8c
- Added impulse on X/Y-axis
- Added time between impulses (1000 = 1 second)
- Changed impulse to work instead of the lastly made shape to all
- Changed modifying X/Y force to take effect on the shapes on the stage]

[26.10.
0.8c/0.8d
- Added triangle-support (though it's a bit weird and funnily enough, I kinda don't even understand in which order the dots should be for the triangles to work, or not.)]
[30.10.
0.8d/0.9
- Added ragdolls
- Added bridges
- Fixed movementX/Y bug
- Reworked the variables on textfields (if you'd like any other textfields, just let me know)
- Added object count (it's 5 because the "world" is counted as one object first)
- Modified the premade walls a bit
- Broke 1000 lines of code (1088 now)
- Decided that unless I get great ideas, this will be the last bigger version, out of skills needed for the rest of the current todo list.]

[31.10.
0.9/0.9a
- Added body-background-joints
- Added joint force variable (also the dragging force)]

[1.11.
0.9a/0.9b
- Added deleting of the most recently made joint on Y
- Modified joints to breakable (does not work while dragging or creating (Shift/J down) joints so that they won't counter each other)
- Added joint strength variable (meaning how much force do you need to break it)
- Fixed deleting -> you can now delete statics too (except triangles cuz they're not really static, even if they're green <.< )]

[4.11.
0.9b/0.9c
- Added magnetism on P (hold P and objects are attracted to mouse)
- Added magnet force variable (negative to make things push away from mouse)
- Added magnet range variable
- Reworked the system a bit
- Added modes on M, circlemode to draw circles without needing to press ctrl, boxmode to draw boxes, interactive mode to... Interact (no need to press shift to drag).
- Added oldmode on N for people who oppose changes (works like the previous versions)
- Added variablevariable, it will affect how much you increase other variables (1 for +/-1, 100 for +/- 100, simple)
- Reworked friction and restitution variables as percentages, changed some preset values]

[6.11.
0.9c/0.9d
- Added camera moving
- Added zoom
- reworked the whole system to support the camera
- Noticed a bug in camera reset (don't draw outside the premade walls or camera's width/height will go boom on reset)
- Fixed moving objects (Q) bug
- Modified ingame instructions a bit]

[8.11.
0.9d/0.9e
- Added somehow-working custom joints
- Changed ragdoll and bridge to fall asleep on creation]

[10.11.
0.9e/0.9.1/0.9.2
- Changed magnet from P to O
- Added toggle pause on P (you can still draw stuff while paused, but graphics and the physicsworld will update after you unpause)
- Added revolution joint on K
- Added distance joint on L
- Added gear joint on H
- Added prismatic joint on G
- Added motor speed & torque in variables
- Added prismatic joint x & y in variables
- Noticed that I'm running out of things to do, and it's not because of me not being able to do them this time, it's just that I've done almost everything already. Time to dig in to some bugs then I guess.
- Added rotation (changes with mouse y coords) on U
- Changed move (Q) to not reset rotation.]



[2.12.
0.9.2/0.9.3
- Added save/load boxes' positions.
- Added How to save/load in FAQ
- Thanked Willasss for help with the savesystem at [link] ]
Related content
Comments: 46

michaeldeth [2017-04-09 22:07:39 +0000 UTC]

i friended you orava on kongate

👍: 0 ⏩: 0

IRAwarrior [2015-01-02 19:01:30 +0000 UTC]

I only get a white blank screen...i try to right click and click "movie not loaded", but i can't.

👍: 0 ⏩: 0

Aerodiety [2012-03-02 12:03:30 +0000 UTC]

Really awesome game man I have a question about flash codes. I'm using AS2 and I have a dynamic text box with the var name health and a variable named health which equals 50 on my first frame. The problem is I have a sleep button on the second frame (the second frame is inside the player's house) which makes the health go up by 50. The button works but then once I press the button which takes you back to the map (frame 1) the variable resets and goes back to 50. I really can't think of a way to fix it, could you please help me, I'm really stumped.

👍: 0 ⏩: 1

0rava In reply to Aerodiety [2012-03-22 22:25:27 +0000 UTC]

Without taking a closer look at the project, I can't quite tell what's wrong with it.

I am, however going to suggest that you learn AS3 and get off the timeline as soon as possible.
It may seem like a hassle right now, but AS2 is so very outdated already and in general way inferior to AS3.

👍: 0 ⏩: 1

Aerodiety In reply to 0rava [2012-03-22 23:44:26 +0000 UTC]

Thankyou for replying. I figured it out but thankyou for taking the time to reply to my message

👍: 0 ⏩: 0

kate256 [2011-03-05 02:02:22 +0000 UTC]

ragdoll in odd pose

👍: 0 ⏩: 0

greivous1214 [2010-11-30 22:23:57 +0000 UTC]

How the heck do I get out of the help screen?

👍: 0 ⏩: 0

Joshinatorky [2010-11-06 04:56:40 +0000 UTC]

Omg this would be awesome on Kongregate! I have a hard time getting my friends to leave kongregate to play a game
Would you take it into consideration?

👍: 0 ⏩: 2

0rava In reply to Joshinatorky [2010-11-06 15:17:12 +0000 UTC]

Uploaded. Made stage slightly bigger.
[link]

👍: 0 ⏩: 0

0rava In reply to Joshinatorky [2010-11-06 14:41:41 +0000 UTC]

If you just think it's worth it, I don't mind uploading it there too.
Personally I think it's way too bad to be considered a real, game-site-worthy, game. Too many things crammed in very small space, not to mention interface straight from hell.

👍: 0 ⏩: 1

jjboy04 In reply to 0rava [2015-10-07 04:13:40 +0000 UTC]

So Your not going to put MaD on deviantart even just the classic one?

👍: 0 ⏩: 0

BlitzKreg-Trixie [2010-05-03 06:24:45 +0000 UTC]

how complicated it is to have fun these days XD

👍: 0 ⏩: 0

theCheeseGrater [2010-04-30 05:05:35 +0000 UTC]

This is really awesome dude Love that it can do sooo many little cubes

Did you write the engine for it?

Interface is a little hard to use but that's ok... UI's are harder to write than physics engines in flash

👍: 0 ⏩: 1

0rava In reply to theCheeseGrater [2010-04-30 07:11:03 +0000 UTC]

Glad you like it.
The physics engine is called Box2D ([link] )
I had slight problems with visual interface so I had to go for keyboard controlling everything, which wasn't that bad in the beginning actually, but now that it uses 90% of the keyboard, it can be fairly confuzing, yeah.

👍: 0 ⏩: 1

theCheeseGrater In reply to 0rava [2010-04-30 08:38:25 +0000 UTC]

ooo C++ ? Alchemy?

👍: 0 ⏩: 1

0rava In reply to theCheeseGrater [2010-04-30 10:34:01 +0000 UTC]

It was originally only in C++ but has now been ported to Scala, Python, Java, Flash and C Sharp.
I used the Flash-port.

👍: 0 ⏩: 1

theCheeseGrater In reply to 0rava [2010-05-01 02:52:56 +0000 UTC]

Ahhh ok awesome

👍: 0 ⏩: 0

Twistedsnail [2010-03-01 08:51:47 +0000 UTC]

what version of box2d

👍: 0 ⏩: 1

0rava In reply to Twistedsnail [2010-03-02 17:02:56 +0000 UTC]

The now-outdated one.

👍: 0 ⏩: 1

Twistedsnail In reply to 0rava [2010-03-03 00:46:54 +0000 UTC]

the new one springs errors about vectors in one of the source .as files!
does that happen to you?

👍: 0 ⏩: 1

0rava In reply to Twistedsnail [2010-03-03 02:28:19 +0000 UTC]

Haven't tried the new one myself, but there's been some pretty drastic changes so you probably need to update your file(s) so they work on the newest version.

👍: 0 ⏩: 0

Joeman454 [2010-01-17 06:55:18 +0000 UTC]

XD i froze it XD

👍: 0 ⏩: 1

0rava In reply to Joeman454 [2010-01-17 08:36:28 +0000 UTC]

Yeah, it's pretty heavy from time to time.

👍: 0 ⏩: 1

Joeman454 In reply to 0rava [2010-01-17 18:59:37 +0000 UTC]

question... did i send you a message on your page? ;.; cause im trying to find a AS3 programmer to help me with something

👍: 0 ⏩: 1

0rava In reply to Joeman454 [2010-01-18 07:11:42 +0000 UTC]

You didn't. But feel free to, even though I'm not so much an AS3 programmer, but I'll see what I can do.

👍: 0 ⏩: 1

Joeman454 In reply to 0rava [2010-01-18 18:53:34 +0000 UTC]

-.- dam... unless you can figure out how to do this with AS2 XD. but i was just told i cant do that on flash in genarol.. im makeing a data base based flash with filters and text searching... you think you can do that in as2? or do i need as3 or another program

👍: 0 ⏩: 1

0rava In reply to Joeman454 [2010-01-19 05:20:52 +0000 UTC]

Don't have any experience myself on database, nor text searching-fronts, but there seems to be both AS2 and AS3 text search scripts out there. For example AS2: [link]
Try searching around for 'as(2 or 3) search engine/text search/something like that'

Then there's also all this serverside stuff you can go for if you wish.

If you have a more detailed explanation of what you're doing, or trying to do, or a .fla or .swf, it would be a bit easier to (try to) help

👍: 0 ⏩: 1

Joeman454 In reply to 0rava [2010-01-19 05:32:42 +0000 UTC]

welll im working on the FLA. and i have an Explaition of how it works on the Games website...

[link]

👍: 0 ⏩: 1

0rava In reply to Joeman454 [2010-01-19 12:56:52 +0000 UTC]

Ugh... That's pretty heavy stuff, coding a full shop with global user interaction (if I understood it right).
I'm pretty sure the search will be among the smallest of your problems if you haven't coded everything already.
And even if you've managed to get everything working (except the search), I'm pretty sure it'd be way over my head to even try to help, sorry.

👍: 0 ⏩: 1

Joeman454 In reply to 0rava [2010-01-19 18:58:15 +0000 UTC]

its okay ^^ i have found someone willing to help me out here.. not sure how long it will take but wile i will be waiting for him to finish i will be devising my attack plains on the companies that are involved with the game. if your good at those things please note me

👍: 0 ⏩: 0

rboyz [2009-10-25 02:41:08 +0000 UTC]

do you plan to make it a game?

👍: 0 ⏩: 1

0rava In reply to rboyz [2009-10-25 04:16:08 +0000 UTC]

If I had an idea, the necessary skills and motivation, sure.

👍: 0 ⏩: 0

Moozipan-Cheese [2009-10-24 20:06:05 +0000 UTC]

Somehow I made a green square. I don't know how I made it or how to get rid of it. In other news, this is awesome. Best of your Demolition 'games' so far.

👍: 0 ⏩: 1

0rava In reply to Moozipan-Cheese [2009-10-25 04:14:04 +0000 UTC]

If you click+drag while holding 1-4, it might make a green (static) shape. Might be because creating lots of things simultaneously. And you can't delete it because of the very reason that it is static, and I've disabled deleting them (otherwise you'd go delete the floor and that wouldn't be fun at all :I)

But now that I think about it, why shouldn't you be able to create statics too? I'll rework on it today maybe and see if I can
1) Fix the bug while drawing (makes red previewcircles be draw even without clicking)
2) Make textfields work with this (for some reason when I added textfields, the drawingsystem went haywire if you mouseovered a textfield while drawing a shape)
3) Make user change shape density (weight) (0 = static)

We'll see.

👍: 0 ⏩: 1

0rava In reply to 0rava [2009-10-25 06:11:15 +0000 UTC]

Did I like learn AS3 last night while sleeping?

[25.11.
0.8/0.8a
- Fixed the drawingbug
- Added density/friction/restitution-changing on arrowkeys for all shapes, including stacks
- Added total reset on R
- Added build walls on B
- Deleted the ball (you can now make the same on your own)]

Will be updated in a sec.

👍: 0 ⏩: 0

nicolemhamilton [2009-10-15 17:57:44 +0000 UTC]

Love the interface, could only dream of doing stuff like this. *sigh*.. I wish my college had an actionscript class.

👍: 0 ⏩: 1

0rava In reply to nicolemhamilton [2009-10-15 18:11:16 +0000 UTC]

Thank you.
And well. You don't particularly need an actionscript class for this, there's only pretty basic functions (which I ripped right from the internets, my AS3 skills still being somewhat... minimal), and the rest is possible thanks to Box2D.
I never studied actionscript myself via any other kind of education than simply by opening the internets and browsing around a bit. By putting some time in it, you, or anyone else for that matter, can do it too.
If you feel like you'd want to give AS a shot and encounter problems, just ask, and I'll see what little I can do.

👍: 0 ⏩: 0

anaglyph [2009-10-08 17:50:22 +0000 UTC]

box2d?

👍: 0 ⏩: 1

anaglyph In reply to anaglyph [2009-10-08 17:54:14 +0000 UTC]

n/m I noticed you said that in desc.

👍: 0 ⏩: 0

NAkos [2009-10-08 16:55:29 +0000 UTC]

So much fun XD

👍: 0 ⏩: 1

0rava In reply to NAkos [2009-10-08 17:18:41 +0000 UTC]

Thanks.

👍: 0 ⏩: 0

RBTR [2009-10-08 16:55:21 +0000 UTC]

..interesting gizmo.....

...you should also add a copy feature so you don't have to re-make all the circles......

👍: 0 ⏩: 1

0rava In reply to RBTR [2009-10-08 17:18:35 +0000 UTC]

Thanks, and yeah, I should add alot of stuff, but it's just that I don't have the slightest clue how <.<

👍: 0 ⏩: 1

RBTR In reply to 0rava [2009-10-08 17:50:44 +0000 UTC]

......try getting some help at Newgrounds: [link]

...its a comunity dedicated to Flash animations and games....

👍: 0 ⏩: 1

0rava In reply to RBTR [2009-10-08 19:05:20 +0000 UTC]

Well. I know Flash, I just don't know Box2D, and my AS3skills are pretty limited.

👍: 0 ⏩: 1

RBTR In reply to 0rava [2009-10-08 19:48:26 +0000 UTC]

......oh...ok...(I know even less)

👍: 0 ⏩: 0