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
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Definiert oder vielleicht doch nicht?! #154390
09/15/07 22:30
09/15/07 22:30
Joined: Mar 2003
Posts: 51
Fürstenfeldbruck
S
Sticky Offline OP
Junior Member
Sticky  Offline OP
Junior Member
S

Joined: Mar 2003
Posts: 51
Fürstenfeldbruck
Hallo zusammen,

ich melde mich mal wieder ^^
Den ganzen Tag lief der folgende Codeschnipsel einwandfrei und seit nun ca. 3 Stunden bekomme ich diese Fehlermeldung wenn ich schiessen möchte. (Vorher lief alles perfekt).
Überall wo "player" davor steht macht er nun Ärger.

Empty Pointer in ´move_bullets: my.pan = player.pan
Empty Pointer in ´move_bullets: my.tilt = player.tilt
Empty Pointer in ´move_bullets: my.roll = player.roll

Code:

function move_bullets()
{
var bullet_speed; // this var will store the speed of the bullet
my.skill30 = 1; // I'm a bullet
my.enable_impact = on; // the bullet is sensitive to impact
my.enable_entity = on; // and to other entities
my.enable_block = on; // as well as to level blocks
my.event = remove_bullets; // when it collides with something, its event function (remove_bullets) will run
my.pan = player.pan; // the bullet has the same pan
my.tilt = player.tilt; // and tilt with the camera
my.roll = player.roll;
bullet_speed.x = 50 * time; // adjust the speed of the bullet here; it will move in the direction given by the camera
bullet_speed.y = 0; // the bullet doesn't move sideways
bullet_speed.z = 0; // or up / down on the z axis
while (my != null) // this loop will run for as long as the bullet exists (it isn't "null")
{
c_move (my, bullet_speed, nullvector, ignore_me); // move the bullet ignoring its creator (the player)
wait (1);
}
}



Es geht um die gelb hervorgehobende Zeile oder eher um "player.pan".
Ich habe hier nichts verändert aber wenn ich versuche zu schiessen dann kommt oben genannte Fehlermeldung.
Ich bin am verzweifeln warum geht es angeblich jetzt auf einmal nicht mehr?


A7 Commercial
Re: Definiert oder vielleicht doch nicht?! [Re: Sticky] #154391
09/15/07 22:43
09/15/07 22:43
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Dann scheint dein Player nicht Definiert zu sein... Zeig mal mehr vom Code

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Definiert oder vielleicht doch nicht?! [Re: rvL_eXile] #154392
09/15/07 23:30
09/15/07 23:30
Joined: Mar 2003
Posts: 51
Fürstenfeldbruck
S
Sticky Offline OP
Junior Member
Sticky  Offline OP
Junior Member
S

Joined: Mar 2003
Posts: 51
Fürstenfeldbruck
*lol* Ich bin sowas von blöd.
Habs hinbekommen, die Lösung lag die ganze Zeit vor
meiner Nase aber vor lauter Verzweiflung übersehen.

Danke :-)

Lg Sticky

Last edited by Sticky; 09/15/07 23:33.

A7 Commercial

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