sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Resources

Reply
 
Thread Tools
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
2..3... 2.3.442.222311. D: oookay no 2.3a2. That is, a second alpha of 2.3.
http://www.gameblender.org/viewtopic...p=10775#p10775


Made in response to the need for a simpler to use FPS template, and as a compliment to Social's template. Bear in mind this template is not simple, it is simpler to use.

If you ask a programmer how to make a first person shooter, they will stare at you like you just fell out of a tree. And hit your head very, very hard, in a particularly sensitive area. Or they'll actually try to tell you, which is worse.

Keyboard controls!

WASD: Move around
Space: Jump (Hold and release)
Mouse is aim.
And a recent addition.. arrow keys are also aim.

Aiming is smoothed using a similar method to the track-to actuator's "time" variable.

The scope of this template covers advanced character dynamics, including jumping, swimming, magnetic surfaces, and wallrunning/improvised techniques. The method of suspending the character is a raycast spring.

So far it features jumping and magnetic surfaces. Wallrunning is slowly being worked out little by little, and swimming is off in the future.

Last edited by Raiderium; 28-Sep-09 at 04:17.
#1   Old 24-Jan-09, 07:26   
Reply With Quote


zymn zymn is offline
Member
 
Join Date: Jul 2007
Posts: 831
wow, i really like how the tazer thing bounces off! but, it seems that jumping is reversed for me... :/
he goes down when i press the spacebar...
but other than that, this is really awesome!
............................................
My Portfolio

And I can't tell if you're laughing, Between each smile there's a tear in your eye. There's a train leaving town in an hour, it's not waiting for you, and neither am I. - Rise Against, "Paper Wings" (BEST. SONG. EVER. :P)
#2   Old 24-Jan-09, 16:55   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
It's automatic jump compression; just press the spacebar and let go. =) Thanks for trying it out!

Right-click is gravity gun, and those curved walls can be walked on. Those things seem to be high-demand features, at least in this area of the forum..
............................................
There has never been a greater love!

Last edited by Raiderium; 24-Jan-09 at 17:47.
#3   Old 24-Jan-09, 17:44   
Reply With Quote
Teo_GreenGage's Avatar
Teo_GreenGage Teo_GreenGage is offline
Member
 
Join Date: Dec 2008
Posts: 534
that's neat We now have a cool polished FPS template .Maybe you can modify the vehicle setup one so we can drift http://www.tutorialsforblender3d.com/
............................................
There is no fun without YOU !
http://teogreengage.blogspot.com/

teo cazghir



Last edited by Teo_GreenGage; 24-Jan-09 at 18:26.
#4   Old 24-Jan-09, 18:21   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
Er, that link gets a server 404- oh, you fixed it.

It uses the builtin vehicle wrapper; you're meant to toy around with the wheel friction settings if you want it to drift.

Did you want me to do that?
............................................
There has never been a greater love!
#5   Old 24-Jan-09, 18:33   
Reply With Quote
cray's Avatar
cray cray is offline
Member
 
Join Date: Dec 2008
Location: France
Posts: 548
That's impressive, and allows a lot of gameplay possibilities.
Thanks for sharing.

Do you think it can be adapted to make a 3rd person adventure template (link)?
That could be called "Simpler 3rd person adventure Template"? mm? ?
............................................
Portfolio : www.aandria.com
My contribution : Third person Template
#6   Old 24-Jan-09, 18:41   
Reply With Quote
Teo_GreenGage's Avatar
Teo_GreenGage Teo_GreenGage is offline
Member
 
Join Date: Dec 2008
Posts: 534
Just take a look at it if you want to. I will do my best to understand the role of each and every setting but i am not sure that it's possible, i don't know. If you have some spare time, take a look
............................................
There is no fun without YOU !
http://teogreengage.blogspot.com/

teo cazghir


#7   Old 24-Jan-09, 18:41   
Reply With Quote
-[Killer]-'s Avatar
-[Killer]- -[Killer]- is offline
Member
 
Join Date: Jan 2007
Location: Florida
Posts: 3,687
There's quite a lot of glitches that I found, like the physics is off, and the gun crosshair is not 100% accurate.
............................................
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀
#8   Old 24-Jan-09, 19:55   
Reply With Quote
UFPS UFPS is offline
Member
 
Join Date: Aug 2008
Posts: 117
It doesn't work for me. I mean, I litterally can't move or aim... and when I click a ball of light appears at the tip of the gun and quickly disappears. Finally I get 9-11 FPS, but that's my comp, not the file...
............................................
VISIT OUR SONIC REMAKE FORUMS!! http://s1.zetaboards.com/Sonic_Renewal
#9   Old 25-Jan-09, 01:19   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
This template is compatible only with 2.48.

Could you tell me what the console window is outputting?

@ Killer:
It doesn't raycast to where the bullet will hit, and transform the position to screenspace yet, if that's what you mean.
What do you mean "physics is off"?
............................................
There has never been a greater love!

Last edited by Raiderium; 25-Jan-09 at 03:28.
#10   Old 25-Jan-09, 03:23   
Reply With Quote
zymn zymn is offline
Member
 
Join Date: Jul 2007
Posts: 831
could you maybe explain how you made the gravity gun type thing?
i just got an idea for an awesome game that involves it! :P
............................................
My Portfolio

And I can't tell if you're laughing, Between each smile there's a tear in your eye. There's a train leaving town in an hour, it's not waiting for you, and neither am I. - Rise Against, "Paper Wings" (BEST. SONG. EVER. :P)
#11   Old 25-Jan-09, 03:57   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
..meep.

A ray is cast. The hit object is found, and the position/orientation is recorded.

Then, a linear and angular spring is applied using those as the target position/orientation.

The springs can be found in the fps_math module; they're called applyMatrixSpring and applyVectorSpring.

applyMatrixSpring(ob_1, ob_2, target, force, damping, debug = 0)

ob_1 is the object the target will be applied to.
ob_2 is the object the force will be applied "against". If you don't want one, you'll have to give it a static object.. this isn't fixed yet.
Target: An orientation matrix.
Force: Force to apply.
Damping: Damping to apply.
Debug: If 1, this draws the ob_1 matrix, along with vectors showing the distance of each axis to the target axis.


applyVectorSpring(ob_1, ob_2, target, force, damping)

Similar to the matrix spring, but the Target is a position in global space. (3 floats)

The bendy white line is a bezier; basically a line of points, subdivided and smoothed. If you want to use them, make a list of positions in space, then give them to bezPath(points, res). Res is resolution, the number of smoothed points. Then, you can either use drawpath() on what that function outputs, or work out an efficient method of attaching vertices to the path.. if you want a path to begin with, that is.
............................................
There has never been a greater love!
#12   Old 25-Jan-09, 04:19   
Reply With Quote
Bluesocarrot's Avatar
Bluesocarrot Bluesocarrot is offline
Member
 
Join Date: Sep 2007
Location: Canberra, Australia
Posts: 191
Yeah, I haven't seen that kind of boolean conversion for key presses before in anything Blender. For that I give you heaps of mad props! Yay!

The way you do the linking between files is brilliant, and no constructive criticism! Yay!

I see that GameBlender has far more intelligent designers than BlenderArtists.... I'd better head that way, try to catch some for myself (And more awesome smileys!)

(Side note: Didn't mean more intelligent, more of the intelligent designers :] (And more intelligent))

EDIT: After reading through the python again, I found that I understood most of it. It is very well commented. May you have a great life with the ability to explain concepts to novices. =D

Last edited by Bluesocarrot; 25-Jan-09 at 04:27.
#13   Old 25-Jan-09, 04:23   
Reply With Quote
Ace Dragon's Avatar
Ace Dragon Ace Dragon is offline
Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 14,006
It looks like the GameBlender people has taken BlenderArtists by storm, I mean that, looking at the huge amounts of python and it would look as if the design just puts Social's ancient template to shame.

The magnetic stuff is something I've never seen in Blender games before, and it's nice how its implemented, a bit of tweaking would turn it into an FPS M.C.Escher would've designed.

Keep up this excellent work, for me though I'm currently settled with Social's old template which I ended up modifying a bit like overhauling the walking system and adding tons of stuff, but what you have is amazing so far. Maybe I will find a use to pick chunks of code from the scripts and use them in other .blends

NOTE: To others I would run it in GLSL mode, then it won't be all pink.

Quote:
(Side note: Didn't mean more intelligent, more of the intelligent designers :] (And more intelligent))
This forum has many BGE users, but several are mainly artists, some who want to get into the BGE after doing renderings and animation. I do both art and games myself.
............................................
Soar, soar through the skies upon the wings of anything that can fly, to bring your dreams to reality, to bring success upon you, to bring you a good life for you and your family. Not everyone can get to the point where you constantly draw 4 aces in a deck of cards, but everyone is able to taste what success feels like and what that can mean for them.
#14   Old 25-Jan-09, 04:51   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
.~. Is it bad I don't know who M.C. Escher is?

Thank you for the praise, ^^;
............................................
There has never been a greater love!
#15   Old 25-Jan-09, 05:01   
Reply With Quote
Bluesocarrot's Avatar
Bluesocarrot Bluesocarrot is offline
Member
 
Join Date: Sep 2007
Location: Canberra, Australia
Posts: 191
Ever seen the paintings or prints that have buildings that are seen through different perspectives within the same image? A stairway leading 'upwards' that brings you to the basement? They're awesome

http://www.koxbox.com.ar/img/Relativity-escher.JPG
#16   Old 25-Jan-09, 05:13   
Reply With Quote
Ace Dragon's Avatar
Ace Dragon Ace Dragon is offline
Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 14,006
http://www.google.com/search?hl=en&q...er&aq=0&oq=M.C
http://en.wikipedia.org/wiki/M._C._Escher

Escher was known for depicting the impossible, if you want a case related to your demo, floors becoming walls and then turning into ceilings, or going up a staircase only to have it twist at a landing so it goes in a different direction.
............................................
Soar, soar through the skies upon the wings of anything that can fly, to bring your dreams to reality, to bring success upon you, to bring you a good life for you and your family. Not everyone can get to the point where you constantly draw 4 aces in a deck of cards, but everyone is able to taste what success feels like and what that can mean for them.
#17   Old 25-Jan-09, 05:17   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
Haha! You know, that's a good idea..

Is someone interested in modelling Relativity? I could then put the template in it..
............................................
There has never been a greater love!
#18   Old 25-Jan-09, 08:09   
Reply With Quote
Hellooo's Avatar
Hellooo Hellooo is offline
Member
 
Join Date: Dec 2008
Location: WA perth Australia
Posts: 498
Sure but what do you mean by relativity, that "stairs go up to basement stairs go down to the attic" thing if you mean that i could be fun
#19   Old 25-Jan-09, 13:04   
Reply With Quote
Raiderium Raiderium is offline
Member
 
Join Date: Jan 2009
Posts: 391
Aye, that thing. It would be nice as a test environment, and it also gives me an idea for an important feature..
............................................
There has never been a greater love!

Last edited by Raiderium; 25-Jan-09 at 16:30.
#20   Old 25-Jan-09, 15:22   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 22:50.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists