Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
My hero starts flying? WHY?! #10802
10/27/02 15:10
10/27/02 15:10
Joined: Oct 2002
Posts: 291
Sydney, Australia
MGS Offline OP
Member
MGS  Offline OP
Member

Joined: Oct 2002
Posts: 291
Sydney, Australia
Hello, everybody.

To start with, I haven't got any answer to my question in the Beginners forum, so I really hope that anyone would be experienced enough here to help me. I would appreciate any hint.

I have the following problem: I'm trying to study one of the code snippets (game templates) from our beloved AUM - air combat game where a player shoots helicopters with a rocket. I have modified a couple of things like helicopters generation and player data indication, but what I don't like at all is how the sky looks. It's simply terrible - that sky cube with standard animated sky texture.

I have found one very nice sky sphere with a texture on "Terminal 26" website and wanted to replace that awful sky cube with that nice sky sphere. I didn't change anything else - I swear.
You know what happens now? When I start my level, my hero simply starts slowly floating into the air! Getting higher and higher, verdammt noch mal! Really surprising, because the only thing that I've changed was deleting the cube and inserting that sphere into my level. I HAVEN'T changed player movement code anyhow. Here is how it looks like:

code:
action player_moves
{
player = me;
my.health = 100;
my.invisible = on;

my.enable_impact = on;
my.enable_entity = on;
my.event = player_event;

while (my.health > 0)
{
vec_set (camera.pos, my.pos);
camera.tilt += 20 * mouse_force.y * time;
camera.pan -= 20 * mouse_force.x * time;
my.pan = camera.pan;
my.tilt = camera.tilt;
player_speed.x = 15 * (key_w - key_s) * time - 0.5 * recoil;
player_speed.y = 10 * (key_a - key_d) * time;
vec_set (temp, my.x);
temp.z -= 1000;
trace_mode = ignore_me + use_box;
player_speed.z = -trace (my.x, temp);
move_mode = ignore_you + ignore_passable;
ent_move(player_speed, nullvector);

wait (1);
}
}

Please, could anyone tell me what could be the reason for such a ridiculous model behaviour?


Solid Snake Project leader www.GameDale.com
Re: My hero starts flying? WHY?! #10803
10/28/02 03:40
10/28/02 03:40

A
Anonymous
Unregistered
Anonymous
Unregistered
A



In the manual it says something about setting your Z axis movement to 0.

Keeps your character from moving up or something...

Re: My hero starts flying? WHY?! #10804
10/28/02 03:48
10/28/02 03:48
Joined: Oct 2002
Posts: 291
Sydney, Australia
MGS Offline OP
Member
MGS  Offline OP
Member

Joined: Oct 2002
Posts: 291
Sydney, Australia
Thanks for a hint, but it couldn't have been so simple - I would have guessed it... [Wink] Unfortunately, when I'm setting my Z-axis speed explicitely to 0, my char still can fly up when I point with my mouse targetting cursor into the air and then press "forward". I need someone, who could see the reason underneath these ridiculous sympthoms...


Solid Snake Project leader www.GameDale.com
Re: My hero starts flying? WHY?! #10805
10/28/02 07:52
10/28/02 07:52
Joined: Oct 2002
Posts: 119
Whirabomber Offline
Member
Whirabomber  Offline
Member

Joined: Oct 2002
Posts: 119
Dumb question: Are you in preview mode?

Re: My hero starts flying? WHY?! #10806
10/28/02 14:32
10/28/02 14:32
Joined: Oct 2002
Posts: 291
Sydney, Australia
MGS Offline OP
Member
MGS  Offline OP
Member

Joined: Oct 2002
Posts: 291
Sydney, Australia
Nope. I'm not in preview and not in Fly Through. Just a normal script run. Once again - the most funny thing is that with cube it runs without any changes perfectly! Technically speaking - what's the difference between a sky cube and sky sphere? There must be something that script needs from sky cube and it's not finding in sky sphere...


Solid Snake Project leader www.GameDale.com
Re: My hero starts flying? WHY?! #10807
10/28/02 18:46
10/28/02 18:46
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
Make sure the character is placed in MED right

Make sure it has the right animation frames

Sometimes scaling the model is a solution


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: My hero starts flying? WHY?! #10808
10/29/02 00:38
10/29/02 00:38

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Yeah, this sounds like your model is in some geometry. You will start floating if that happens.

Make your sphere passable and make sure your character isn't "in" anything.

-Jeff

Re: My hero starts flying? WHY?! #10809
10/29/02 05:35
10/29/02 05:35
Joined: Oct 2002
Posts: 291
Sydney, Australia
MGS Offline OP
Member
MGS  Offline OP
Member

Joined: Oct 2002
Posts: 291
Sydney, Australia
I don't know how I can check it, guys - I'm not changing anything in the model position on the stage. I just try it out with the cube - it works. Then I delete sky cube with awful texture, and replace it with sky sphere - then my hero starts "floating". That's all. It is not very likely that my player is "stuck" in some geometry, etc. The sphere is hollow. Standard sky taken from "Terminal 26" site... Really frustrating. [Frown]

Well, it really looks like I'll have to go on using those sky cubes. I would appreciate any advice on improving the look of my sky on a standard sky cube, though...


Solid Snake Project leader www.GameDale.com
Re: My hero starts flying? WHY?! #10810
10/29/02 06:34
10/29/02 06:34

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hmm, I had this exact problem before and I remedied it by using an .mdl sphere with "My.passable = On" in it's action.

Remove your sky box again, bring in your sky sphere and attach this action to it.

Action SkyTest{
My.passable = on;
}

See if that works.

Re: My hero starts flying? WHY?! #10811
10/29/02 14:52
10/29/02 14:52
Joined: Oct 2002
Posts: 291
Sydney, Australia
MGS Offline OP
Member
MGS  Offline OP
Member

Joined: Oct 2002
Posts: 291
Sydney, Australia
Sorry, Jeff, it's still not working. Really really strange. You have seen my movement code and read all my explanations - I ONLY replace cube with sphere. Here, I made two screenshots so that you get a picture of what's happening:
1). Normal behaviour - SKY BOX (CUBE)
2). Floating in the air - SKY SPHERE


Solid Snake Project leader www.GameDale.com
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1