PDA

View Full Version : Ragdoll Movement (TEST)


Treacle109
05-07-2009, 07:02 PM
Im working with Farseer Engine to create a Quick Two Player game, Basically one player controls the Ragdoll and another controls balls/slow bullets that shoot from the side, when the ragdoll gets hit with the Projectile, the limb that gets hit loses health and eventually becomes inactive and obviously slows movement..

So far, this is just a test for the movement (Very basic walking atm) You can use the Arrow Keys to control gravity and go towards the floor to start him walking properly (Can go left, right etc too) Pressing K makes the Ragdoll inactive so he no longer walks at all...

The gameplay will be "Survive the Longest" sort of thing, against the other player...

Im gonna update the Walking animation part obviously, and if anyone wants to help, i need someone to make some textures for the Player

Video: http://www.screencast.com/users/Treacles/folders/Jing/media/8c0908bf-6f95-43dd-b556-acdaa39dc761

http://stashbox.org/v/509583/My%20Test.exe

Treacle109
05-09-2009, 10:10 AM
You now control the character with the Left and right keys, and he walks a lot better now... Anything i should change?

http://www.box.net/shared/scptpkvsuf

Bugs:
The floors Image ends half way, but the physics object keeps going (Error with the image being drawn -_-)

EDIT:
Added in Crouch and Jump... To get as high as possible, Crouch before Jumping
Theres a bar quite far to the right, so you can get some speed and then attempt to jump over, or slide under somehow
Download link is the same

MyNameIsJason
05-09-2009, 08:46 PM
nice, but i don't like it when im trying to jump over that bar at the end, and then i try to jump and the guy goes stiff..

Treacle109
05-09-2009, 09:17 PM
I did, at first make it crouch a lil and then jump itself... But i got some problems with doing that

Btw, new Version:

http://www.box.net/shared/scptpkvsuf

Left Click: Spawn Box, Right Click: Spawn Circle, Middle Click: Swap between Dynamic and Static objects being spawned

lord_of_sausage
05-10-2009, 07:10 AM
Are you planning making this to a game?

Treacle109
05-10-2009, 09:45 AM
Yes, Its either going to be a 2 Player "Survive Longest" sort of thing, where one player shoots the player controlling the ragdoll, while he tries to dodge...

Or it will be a basic platformer, like Mario... But with physics -_-

Im gonna need some help with things like graphics for the character, textures for the World objects etc. I might attempt a quick Mock Up level later on today, to test the platformer idea...

If i eventually get around to learning about Network in BlitzMax and mock up a Score Board for Times as well...

Treacle109
05-10-2009, 11:22 AM
Sorry for double post, But is anyone here Experienced in BlitzMax at all? Im trying to figure out how to use External Files for making levels... I've been experimenting with Streams but cant figure out how exactly i'd use them, or how to use them correctly. Any kind of Example would be very helpfull

Confused111
05-10-2009, 10:09 PM
Can you add a video, please?
Whatever, Ima dl anyway.

Nate The Great
05-11-2009, 03:36 PM
Hey im experienced in blitz max.

sorry its a bit off topic but I hope its helpful:

for streams use

local mystream:tstream = readfile("myfilepath.txt")
you can also use openfile or writefile

use the readline or readint command to get info from the stream

Treacle109
05-11-2009, 03:58 PM
I know how to use it, but not how i can use it for levels... I attempted to make a Highscores using it too, but Every time i write to a file, i could move the position like, 300 Characters away from the last thing i wrote, but it will still remove it :/

Btw, Video for those that dont want to Download (Laggy)

http://www.screencast.com/users/Treacles/folders/Jing/media/8c0908bf-6f95-43dd-b556-acdaa39dc761

Gonna upload new version soon, that stops a glitch where if you do a forward flip, and then try to walk... It will try to do a backflip first

Nate The Great
05-11-2009, 04:12 PM
maybe if you post on the blitz forums you could get better help.

Treacle109
05-11-2009, 05:44 PM
Theres a reason im not posting on the forums... (If you know what i mean)
xD

Wrestler#1
05-11-2009, 06:07 PM
Wow, now make a fallingreaction and there you have your 2D Euphoria :D
In other words: I like it! Keep working.

Treacle109
05-11-2009, 06:08 PM
Shouldnt be too hard for something like that lol

If RagRotation > 45
PutOutArms()
End If

Sortta thing -.0

Wrestler#1
05-11-2009, 06:14 PM
Yeah, but what about falling backwards?

Dude, I think you have to make a little demo with fallingreactions lol

Treacle109
05-11-2009, 06:17 PM
Ill make a sort of stagger for falling backwards, shouldnt be too hard lol

Wrestler#1
05-11-2009, 06:19 PM
OK, so can we expect a demo? :D

Treacle109
05-11-2009, 06:22 PM
Maybe -.- I'll have a mess around with the idea a bit later maybe, or maybe tomorrow lol...

Wrestler#1
05-11-2009, 06:24 PM
I can't wait. You don't know, how bored i am. It is good to see some nice work in times of boredom (is that a word? :D)

Got to go

greets

Treacle109
05-11-2009, 06:53 PM
Development of the actual game has been put onto hold until i can get info on how to do the Level Shizzle

BigNerfGun
05-11-2009, 07:14 PM
Fun lil game, Although I think I killed it...
Only makes it better tho :D

Treacle109
05-11-2009, 07:18 PM
lol... Looks like he has more body parts then i made him with in that picture xD
I might actually add the whole Spawning thing to the final game, but with limitations obviously

Treacle109
05-12-2009, 04:27 PM
I tried adding the whole, stumbling thing... But it mostly just made it even more difficult to control, you'd be running fast and then just randomly start stumbling backwards because of the way it was finding it... The next step is to get the Level code done, which i cant actually do atm because of some difficultys lol

Wrestler#1
05-12-2009, 04:43 PM
Aw, come on. You made a walking ragdoll and now you can't handle the levelcode? :D
Maybe you should kindly ask some pros, like the creator of spewer?

Treacle109
05-12-2009, 04:59 PM
I asked STEWIEG (I think thats his name) Hes pretty pro at BlitzMax lol...

Ah, nope... Its Stevie G lol

I think i got a slight idea of how to do it now, found out after alot of digging... Level files look a bit like this atm though:

1
200
200
0

0
100
150
1

Treacle109
05-12-2009, 08:18 PM
Okay, this version has some Textures done... The floor isnt done yet, since i found a problem with the Tiles that were made ( And its gonna be sortta hard to work out the right kind of formula for the tiles D: )

http://www.box.net/shared/ju04et5pmv

Extract it all, it wont work at all without textures

Textures by Chrupencjusz

EDIT: Got the tiles to work (Well, they fail if the Object the tiles are for needs to rotate (If theres more than one tile)) so ill update it as soon as ive figured out how to get this to work! (I think i might need some trigonomotry to get it to work right D: )

Function DrawTiles(Geom:TGeom, Image:TImage, X, Y)
Local Rotation:Int = MathHelper.ToDegrees(Geom.GetRotation())
Local Position:Vector2 = Geom.GetPosition()
SetRotation(Rotation)

Local StartX = Position.X - (X / 2)
Local StartY = Position.Y - (Y / 2)

Local TilesX = X / 50
Local TilesY = Y / 50

For X2 = 1 To TilesX
For Y2 = 1 To TilesY
DrawImage(Image, StartX + (50 * X2) - 25, StartY + (50 * Y2) - 25)
Next
Next
End Function


Anyone know how im gonna get the tiles to Position themselves according to rotation?

Chrupencjusz
05-13-2009, 05:31 PM
I'm really bad spriter but i hope you like it

Treacle109
05-13-2009, 05:35 PM
http://img16.imageshack.us/img16/636/menuvgl.png
http://img231.imageshack.us/img231/4517/menun.png

Two menu concepts, what do you guys like out of the two? (There both just positioned differently)

Made by: Chrupencjusz

Im also looking for someone to do some good "Chinese Art" style textures for the Characters, to go with the same style as the Menu screen, since it looks good lol

Btw, Looking into fixing a problem where if the game is lagging... The players running is affected to the point that he cant run any longer because he changes state too quickly

MyNameIsJason
05-13-2009, 08:02 PM
I like the first one Treacle :)

starsky
05-14-2009, 01:28 AM
Wow! That is very cool! You should definately make a game with this engine!

Wrestler#1
05-16-2009, 07:02 PM
Any updates?

The first menu looks better, although I don't know how well the menustyle fits into the game.

Treacle109
05-16-2009, 08:58 PM
Well, atm... Im having to recode most of it to allow me to make Menus, Multiple Levels, Editors etc... As i orginally made this as a quick test

Confused111
05-16-2009, 10:46 PM
I like the first one better.

Treacle109
05-16-2009, 11:31 PM
If you dont think the Menu fits the game... Try redesigning one you think, Does... Im not the artist for this, you guys are lol

Wrestler#1
05-17-2009, 04:14 PM
I think something colorfull would fit since you play a stumbling guy.
That black/white style is waaay too serious for this type of game.

Too bad I broke off learning Photoshop :/

Chrupencjusz
05-17-2009, 07:36 PM
I'm really bad if it comes to Photoshop or Gimp.
That's just a prototype.
You guys can help,

Head: 20*20 Pixels
Torso: 30*45 Pixels
Arm: 50*15 Pixels
Foot: 25*10 Pixels
Both Legs: 15*30 Pixels

Tiles: 50*50 Pixels

Treacle109
05-18-2009, 02:45 PM
Make sure the tiles are able to be Reaccuring though... So nothing that ends abruptly, also, some "Top tiles" would be nice, by that i mean rather than having a whole thing the same tile, there could be grass on top and dirt at the bottom

Wrestler#1
05-18-2009, 02:50 PM
Oh, well, I'll have a look at the character sometime this week.

Maybe adding a character selection menu wouldn't be that bad.

Treacle109
05-19-2009, 03:40 PM
Im going to make a character customising part, where you can upload your own images...

Treacle109
05-24-2009, 07:16 PM
Just reformatted laptop, so developments gonna be a bit slow (Gotta put all my shit together again, before i can keep playing around with it)

timelimit123
09-17-2009, 01:49 PM
why not simply download the latest version and continue from that point? the link is still up... (which, to me, is confusing)

Treacle109
09-17-2009, 07:39 PM
why not simply download the latest version and continue from that point? the link is still up... (which, to me, is confusing)

Because that is an Executable... I've got the code back now, but i simply havent got time to now...

timelimit123
09-18-2009, 05:05 AM
Because that is an Executable...

oh sorry, thought there was a decompiler :/

timelimit123
11-03-2009, 04:44 PM
sorry for double post, but hows the development going? I hope it's not dead...

Treacle109
11-03-2009, 06:05 PM
I've pretty much given up on it, as it was only supposed to be a test anyways... But if anyone wants to try and continue it i can post up the source code if i can find it on my backup drive. Im trying to learn C# and Silverlight atm, so i might start tryin to make something like this but playable on a browser