Eric: The Mysterious Stranger - RTS game(WIP)

User projects written in or related to FreeBASIC.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Jun 16, 2017 16:05

leopardpm wrote:lol! fun! on the diagonals he seems to be 'sliding' alot, and same with the horizontal movement, except on the horizontal it also looks like his rear left leg is 'pushing off' like one might do while riding a skateboard... but these are things not in need of fixing necessarily... i fear one could spend a lifetime refining an animation.... diminishing returns et al...

Yeah, it still has a few issues, but if you don't study it too hard it looks ok.
Here is a Viking walk cycle.
Image
It was easier than the bear because people only have two legs to synchronize and it's easier to use myself as an animation reference as opposed to watching videos of bears walking.

BasicCoder2 wrote:So do you adjust the rigging using a side view?
If you look at some of the walking bear examples on the internet you should see how the joint angles change with time.

I generally use the perspective view while rigging. Side view is useful for the actual animation. My bear's walk cycle is far from realistic but I do it hope that it looks decent enough not to draw attention to this.
BasicCoder2 wrote:Still getting 403 forbidden. Access to this resource on the server is denied. So it appears I will no longer be able to copy past any code to the forum.

That error is annoying. I'm getting it as well when trying to edit the title post.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Jun 16, 2017 18:37

Boromir wrote:Here is a Viking walk cycle.
It was easier than the bear because people only have two legs to synchronize and it's easier to use myself as an animation reference as opposed to watching videos of bears walking.

The opposite legs of the bear have the same values but are 180 degrees out of sync.
I would post a demo if it were not for the 403 error.
Your walking viking looks pretty good.
.
leopardpm
Posts: 1590
Joined: Feb 28, 2009 20:58

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby leopardpm » Jun 16, 2017 18:46

Boromir wrote:Here is a Viking walk cycle.
Image

He looks AWESOME! Nice and smooth, really fluid... good job, Boromir!

I have come across some pixel art sprite forums in my researching and I notice that they will post up their latest work and get good critiques and helpful advice from other artists... you might want to try doing the same.... same effect as in the FB forums, but for sprite work instead of code...
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Jun 16, 2017 21:54

leopardpm wrote:He looks AWESOME! Nice and smooth, really fluid... good job, Boromir!

Thanks! I updated the bear demo to have both of them. WASD keys for the human: TFGH keys for the bear.
https://drive.google.com/file/d/0BxwvH1 ... sp=sharing
I'm going to try to give him some more animations like carrying wood, chopping trees, swinging sword and hammering.
Then he will be ready for use in things.
leopardpm wrote:I have come across some pixel art sprite forums in my researching and I notice that they will post up their latest work and get good critiques and helpful advice from other artists... you might want to try doing the same.... same effect as in the FB forums, but for sprite work instead of code...

Interesting. Are there any specific ones you recall?

BasicCoder2 wrote:The opposite legs of the bear have the same values but are 180 degrees out of sync.
I would post a demo if it were not for the 403 error.
Your walking viking looks pretty good.

You could try posting code to pastebin until the 403 problem is resolved. Just a thought.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Jun 17, 2017 1:35

Boromir wrote:You could try posting code to pastebin until the 403 problem is resolved. Just a thought.

We'll have to wait and see if I can fix it. It must be fixable somehow!!
You seem to have it all sorted now with Blender ok . I assume there is a Blender forum to help improve your techniques?
The example I was going to post was a bear version of this:
viewtopic.php?f=8&t=25470&hilit=stick+man
We all have the same bones they just vary in length and size. You should be able to copy paste your rigging animation to other animals similar to bears and simply change the positions of the joints and length of the bones. That is all evolution did to provide all the variety we see today.
The stick bear is the same as the stick man the main difference is in the length of the bones. Bears have short legs for example.
.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Jun 17, 2017 2:42

BasicCoder2 wrote:You seem to have it all sorted now with Blender ok . I assume there is a Blender forum to help improve your techniques?

I do believe there is a blender forum though I have never used it before. I have been using both blender and anim8or for a long time now, mostly for 3d games. With this 2d stuff a lot of restrictions are removed making it easier for me to whip up a model. No worries about poly count and other render costs because everything's saved to an image.
BasicCoder2 wrote:The example I was going to post was a bear version of this:
viewtopic.php?f=8&t=25470&hilit=stick+man

Nice demo! That is basically how bones work in blender or any other 3d animation software out there. It wouldn't be too hard to make my bear into a pig.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Jun 18, 2017 11:28

Boromir wrote:That is basically how bones work in blender or any other 3d animation software out there. It wouldn't be too hard to make my bear into a pig.

Along with many other vertebrates sharing the same set of bones. Today I started changing the stick man rigging program to include changing the length of the bones and will add the ability to animate them. The stick man becomes a bear just by changing the length and angle of the bones. Does your rigging include the fingers? Bears actually curl their wrist backward when they move them forward.
.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Jun 18, 2017 13:21

BasicCoder2 wrote:Does your rigging include the fingers? Bears actually curl their wrist backward when they move them forward.

No, I haven't. Rigging the fingers would probably just become detail that you wouldn't see in the final sprite.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Sep 06, 2017 15:01

It's been a while since I updated this thread. :)
Feels good to have a lot of new features.
I can't post the latest version because I messed up some of the AI but here is a screenshot of the auto terrain smoothing.
Image

I added auto terrain edge smoothing for the map editor.
Added a brush size in the map editor as well as a thickness factor useful for quick forests.
Optimized to run 100 agents running at 100 fps on a 300x300 tile map.
Combat with per unit defense and attack values.
Updated the games gui library to support droplists, number input boxes, check boxes and text boxes
Units will spend time chopping trees with an animation.
The unit sprite is now a pre-rendered 3d model. I prefer the look of BasicCoder2's hand drawn sprite but this makes new animations easy.

I haven't been spending too much time on this RTS game recently because I had also had been working on a 2d skeletal animation program.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Sep 06, 2017 23:29

You need motion capture for your skeleton. I have responded to this thread in the general section on this subject.
.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Sep 08, 2017 15:20

BasicCoder2 wrote:You need motion capture for your skeleton. I have responded to this thread in the general section on this subject.

The tool I was making was more for use on 2d platformer sprites.

Image
Added raised terrain.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Sep 10, 2017 20:58

Boromir wrote:
BasicCoder2 wrote:You need motion capture for your skeleton. I have responded to this thread in the general section on this subject.

The tool I was making was more for use on 2d platformer sprites.

So are you thinking of making a 2d platformer game?
Is the Viking example a pre made model or did you shape and clothe it yourself?
.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Sep 11, 2017 16:38

BasicCoder2 wrote:
Boromir wrote:
BasicCoder2 wrote:You need motion capture for your skeleton. I have responded to this thread in the general section on this subject.

The tool I was making was more for use on 2d platformer sprites.

So are you thinking of making a 2d platformer game?
Is the Viking example a pre made model or did you shape and clothe it yourself?
.

I made the viking in blender from scratch.
I started working on a platformer a while back. Every now and then I get back to it. I'm kind of interested in adding 2d physics to it.
BasicCoder2
Posts: 2815
Joined: Jan 01, 2009 7:03

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby BasicCoder2 » Sep 12, 2017 5:58

If you are writing a platform game you don't use real physics. The physics in such games are designed for control and fun.

If you have reached that stage with Blender, I never did, you are on the home run. Will be interested to see how easy it is to tweak another character. For example I assume you will be tweaking Eric into Lagertha?

Couldn't resist doing a quick cartoon of your Eric and female companion.

Code: Select all

screenres 640,480,32
color rgb(0,0,0),rgb(255,255,255):cls
dim as any ptr image
image = imagecreate( 60, 71)
dim as ulong colors( 14)
colors( 0)=RGB(255,255,255)
colors( 1)=RGB(166,66,0)
colors( 2)=RGB(255,127,39)
colors( 3)=RGB(218,154,133)
colors( 4)=RGB(0,0,0)
colors( 5)=RGB(0,162,232)
colors( 6)=RGB(106,84,62)
colors( 7)=RGB(116,12,14)
colors( 8)=RGB(143,14,17)
colors( 9)=RGB(170,17,21)
colors( 10)=RGB(127,101,74)
colors( 11)=RGB(148,97,1)
colors( 12)=RGB(68,26,14)
colors( 13)=RGB(65,23,10)

for i as integer = 0 to 11
    line (i*32,32)-(i*32+31,32+31),colors(i),bf
next i

dim as string datum
dim as integer n
for j as integer = 0 to  70
    read datum
    for i as integer = 0 to  59
        n = val("&H" & mid(datum,i+1,1))
        pset image,(i,j),colors(n)
    next i
next j
bsave "couple3.bmp",image
put (100,100),image,trans
sleep

DATA "000000000000001111000000000000000000000000000000000000000000"
DATA "000000000000011111110000000000000000000000000000000000000000"
DATA "000000000000111111111000000000000000000022222200000000000000"
DATA "000000000001111111111100000000000000000222222220000000000000"
DATA "000000000001111111111110000000000000000222222222000000000000"
DATA "000000000001111111111110000000000000002222222222000000000000"
DATA "000000000001111111111110000000000000002222222332200000000000"
DATA "000000000001111111133410000000000000002222233342200000000000"
DATA "000000000001111333433310000000000000002222334352200000000000"
DATA "000000000000311333333310000000000000002223335332200000000000"
DATA "000000000000331113333314400000000000022223333332200000000000"
DATA "000000000063331111333314444000000000022227333332222000000000"
DATA "000000006666333111113116444600000000022227733338922000000000"
DATA "000000446666333331111116446600000000022222777779990000000000"
DATA "000004446666633333311116446600000000A222222777799A0000000000"
DATA "00004444466666633333336644660000000AAA22999977999AA000000000"
DATA "0006666444466666333336664466600000AAA222999999999AAA00000000"
DATA "0006666644446666633336664466600000AAA2229999999999AAA0000000"
DATA "000666666644446666666666466660000AAAAA2299999999999AA0000000"
DATA "000666666666444466666666466660000AAAAA2999999999999AA0000000"
DATA "006666666666664446666666466660000AAAAA9999999999999AA0000000"
DATA "00666666666666644444466446666600AAAAAA9999999999999AAA000000"
DATA "06666666666666666444444444666600AAAA04499999444999AAAA000000"
DATA "06666666666666666664444B4466660AAAAA04449994444444AAAAA00000"
DATA "066666666666666666644BBB4466666AAAAA044444444444440AAAAA0000"
DATA "066666666666666666644BBB4466666AAAAA004444444444400AAAAA0000"
DATA "066666606666666666664B4444666666AAA00044444444444000AAAAA000"
DATA "66666600666666666664444444666666AAA000044444444440000AAAAA00"
DATA "66666600666666666664446644466666AAA0000444444444400000AAAA00"
DATA "66666600666666666664466664466666AAA00084444444444000000AAA30"
DATA "666666006666666666446666644666666AA000844444444448000000A333"
DATA "666666006666666664466666664466666AA0094444444444480000003333"
DATA "666666066666666644466666664066666A00888844444444888000000333"
DATA "666660066666666444666666640066663300888884444448888000000033"
DATA "666660066666664446666644440003333308888888888888888800000330"
DATA "666660066666644444444444400003333338888888888888888800000000"
DATA "666660004444444444444444400000333388888888888888888800000000"
DATA "066660004CCCCCCCCCCCC444400000033338888888888888888880000000"
DATA "066330004CCCCCCCCCCCC444400000003388888888888888888880000000"
DATA "0333300044CCCCCCCCCC4444400000000088888888888888888880000000"
DATA "0333330004CCCCCCCCCCC444000000000088888888888888888880000000"
DATA "03333300044CCCCCCCCCC444000000000088888888888888888880000000"
DATA "00333000044CCCCCCCCCCC44000000000088888888888888888880000000"
DATA "000000000044CCCCCCCCCC40000000000088888888888888888880000000"
DATA "000000000044DDCCCCCCCCC0000000000888888888888888888880000000"
DATA "000000000004CCCCCCCCCCC0000000000888888888888888888880000000"
DATA "0000000004444CCCCCCCCCC0000000000888888888888888888880000000"
DATA "0000000044444CCCCCCCCCC0000000000888888888888888888880000000"
DATA "0000000444444CCCCCCCCCC0000000000888888888888888888880000000"
DATA "0000000444444CCCCCCCCCC0000000000888888888888888888880000000"
DATA "0000000444444CCCCCCCCCC0000000008888888888888888888880000000"
DATA "00000000444444CCCCCCCCC0000000088888888888888888888888000000"
DATA "000000004444444CCCCCCCC0000000088888888888888888888888000000"
DATA "000000000444444CCCCCCCC0000000088888888888888888888888000000"
DATA "000000000044444CCCCCCCC0000000088888888888888888888888000000"
DATA "000000000004444CCCCCCCC0000000088888888888888888888888000000"
DATA "0000000000004444CCCCCCC0000000004888888888888888888888000000"
DATA "0000000000000004CCCCCCC0000000004888888888888888888888000000"
DATA "00000000000000044CCCCCC0000000004488888888888888888880000000"
DATA "00000000000000004CCCCCC0000000004448888888888888888800000000"
DATA "000000000000000044CCCCC0000000004444488888888888888800000000"
DATA "000000000000000004444440000000000044408888888888888800000000"
DATA "000000000000000000444440000000000000000000888888440000000000"
DATA "000000000000000000444444000000000000000000008444440000000000"
DATA "000000000000000000444444000000000000000000000444440000000000"
DATA "000000000000000000444444400000000000000000000444440000000000"
DATA "000000000000000000444444444400000000000000000444640000000000"
DATA "000000000000000000444466666640000000000000000444644000000000"
DATA "000000000000000000444444444444000000000000000044444000000000"
DATA "000000000000000000044444444444000000000000000004444000000000"
DATA "000000000000000000004444444444000000000000000000000000000000"

.
Last edited by BasicCoder2 on Sep 12, 2017 20:01, edited 1 time in total.
Boromir
Posts: 376
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Postby Boromir » Sep 12, 2017 16:06

BasicCoder2 wrote:If you are writing a platform game you don't use real physics. The physics in such games are designed for control and fun.

I think real physics add an extra dimension of gameplay to platformers. Games like Trine use real physics and are quite fun because of it.

BasicCoder2 wrote:If you have reached that stage with Blender, I never did, you are on the home run. Will be interested to see how easy it is to tweak another character. For example I assume you will be tweaking Eric into Lagertha?

I started 3d modelling about 3 years ago. I still feel like I'm just starting.
My models are not usable in actual 3d games due to poly count. Their only use is to be prerendered for 2d games. I may experiment with another character soon if I have time.

BasicCoder2 wrote:Couldn't resist doing a quick cartoon of your Eric and female companion.

Nice! You're getting pretty good with these 2d pixel art sprites! I like the pixel art style result better than 3d, but for me it's faster to make 3d.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests