Search found 1879 matches

by Kjell
Fri Sep 26, 2008 2:31 pm
Forum: General discussion
Topic: Beta release 1.9.3b
Replies: 21
Views: 22185

Hej Ville, Great new component, ZLibrary. Though, I'm curious why you choose to define the function name in the ZLibrary itself instead of going with a Condition Component style approach and actually use the Name field as Function name. Although this way you only need one ZLibrary instead of one for...
by Kjell
Wed Sep 24, 2008 1:52 pm
Forum: General discussion
Topic: basic First Person engine - an open-source community project
Replies: 3
Views: 6978

Hi, Use the following code to get the aim right. CurrentModel.Velocity.Vertical = sin(CurrentModel.Rotation.Vertical*Pi*2); CurrentModel.Velocity.Longitude = sin(CurrentModel.Rotation.Horizontal*Pi*2)*cos(CurrentModel.Rotation.Vertical*Pi*2); CurrentModel.Velocity.Lattitude = cos(CurrentModel.Rotati...
by Kjell
Sun Sep 21, 2008 3:43 pm
Forum: Feature requests
Topic: Inheritance
Replies: 21
Views: 20999

Hi diki, Since most / all? programming languages limit the amount of Classes you can Extend from to 1, you probably want to stick to that number. You could however enable extending Classes themselves as well, in a classic "Model" > "Ball" > "Soccer Ball" type of fashion...
by Kjell
Sat Sep 20, 2008 2:54 pm
Forum: Your projects
Topic: anothe useless bit of nothing,.
Replies: 4
Views: 6733

Hi jph,

Love the sound effect when continuously pressing K or I ( plus some J & L on top ), very space-y :) How's that Rising Star Program working out for you?

Hope all is well,
K
by Kjell
Sat Sep 20, 2008 2:12 pm
Forum: Feature requests
Topic: Inheritance
Replies: 21
Views: 20999

Inheritance

Hi,

A inheritance / extends property for Models combined with a Class Component would come in handy when constructing various models that share a number of Variables and Behaviors.

K
by Kjell
Sat Sep 20, 2008 1:36 pm
Forum: General discussion
Topic: Clarification needed! urgent! ;)
Replies: 4
Views: 6218

Hi Francesco, I've mentioned this before, and I'll mention it again :) Step based collision isn't a good method for physics type solutions. It's only good for gathering information. Depending on how far the ball has traveled into the block, it will give a different result when using the Stop Action....
by Kjell
Sat Sep 20, 2008 11:24 am
Forum: General discussion
Topic: Clarification needed! urgent! ;)
Replies: 4
Views: 6218

Hi Francesco, What exactly is the problem here? The fact that the documentation does not clearly state that OnStop still triggers OnCollision Events in Models as well? I guess it could be clarified in the Wiki that all Collision Actions will always trigger OnCollision at the least. By the way, the b...
by Kjell
Tue Sep 16, 2008 3:43 pm
Forum: General discussion
Topic: How to limit the framerate?
Replies: 7
Views: 9053

Hej jph, Well, no .. there is no easy way at the moment. Apart from when you're using Rect2D_OBB, then you can just use the scale properties and CollisionOffset to extend the collision box while countering the rendered scale using a RenderTransform. Problem is that with these kind of collision check...
by Kjell
Tue Sep 16, 2008 3:16 pm
Forum: Tips'n'Tricks
Topic: hi
Replies: 5
Views: 7326

Hej jph,

You can use Alt+Enter to Start / Stop :)

K
by Kjell
Tue Sep 16, 2008 1:53 pm
Forum: General discussion
Topic: How to limit the framerate?
Replies: 7
Views: 9053

Hi diki, Even though you're only mentioning the collision situation merely as example, step based physics and collision checking is outdated and concidered bad practice in most cases. Developers these days extrude the bounding mesh of a object over the velocity direction vector with a extend of the ...
by Kjell
Sun Sep 14, 2008 11:05 am
Forum: Tips'n'Tricks
Topic: hi
Replies: 5
Views: 7326

Hi zakkwylde,

Use centerMouse() in a ZExpression to center the mouse, "}" as Key of a KeyPress Component for the Right Mouse Button, and lower the App.FOV property dynamically using a ZExpression to perform a zoom effect.

Good luck ~
K
by Kjell
Fri Sep 12, 2008 10:15 pm
Forum: General discussion
Topic: Variable Scope / Publicity and Privacy
Replies: 2
Views: 4757

Hi diki, The easiest solution for your problem would be to change the SpawnStyle of the two SpawnModel components from Clone into Reference. However, when you'd insist on using Clones, there are a couple of things that need to be changed. Variables that belong to individual models need to be defined...
by Kjell
Fri Sep 12, 2008 9:04 am
Forum: General discussion
Topic: Collision Bounds for Rect2D_OBB
Replies: 2
Views: 4771

Hi diki,

No you are correct. Only the OBB Collision types take a Model's scale and rotation in consideration. The non-OBB types only use the Position, CollisionBounds and CollisionOffset properties.

+ Welcome :)

K
by Kjell
Sun Aug 31, 2008 11:11 pm
Forum: General discussion
Topic: BitmapFromFile Bug
Replies: 1
Views: 3635

BitmapFromFile Bug

:? Although this issue has already been addressed before several months ago ( then using .bmp ), it seems that the BitmapFromFile Component still suffers from the swapped X & Y pixel count syndrome with other file types such as .gif and .jpg. And as I couldn't track down the responsible code in ...
by Kjell
Thu Aug 21, 2008 9:59 am
Forum: ZGE Source Code
Topic: Filter
Replies: 3
Views: 15498

Hej jph,

Same 16x16 Bitmap, different Filter.

Code: Select all

this.Pixel.R = X;
this.Pixel.G = Y;
this.Pixel.B = 1-Y;

if(X == 0 || X == 1-1/16){
  this.Pixel = 1;
}

if(Y == 0 || Y == 1-1/16){
  this.Pixel = 1;
}
Joystick isn't done yet, I'll have to find some time to finish it up.

K