123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|390|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Converting Algorithm

Sun, 02 Jun 2013, 18:25
dna
Hello.

I was converting this function



to B3D and wante to know what the statement :

Return self

does?


-=-=-
DNA
Sun, 02 Jun 2013, 19:58
Mog
SELF is referencing the object that is invoking the method - If you had something like a:thing in blitz3D, and if B3d had methods, if you call a.create(), it will invoke that method with A declared as a local object, named SELF.

Pass the object into the function as Self:SimpleProgressBar.

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Mon, 03 Jun 2013, 01:28
steve_ancell

Mon, 03 Jun 2013, 15:13
dna
Thanks Steve
Mon, 03 Jun 2013, 15:23
steve_ancell
You're welcome Bud.
Tue, 04 Jun 2013, 11:06
dna
With all the conversion going on I finally came up with this.


Why the original code used types in Bmax is unknown when this works the same.

-=-=-
DNA
Tue, 04 Jun 2013, 14:53
steve_ancell
[quote=dna]Why the original code used types in Bmax is unknown when this works the same.[/dna]
If you mean the code I posted, it's not BMax, I did that in Blitz3D. I've done it that way before, but with different field names.
Tue, 04 Jun 2013, 15:22
dna
Not yours Steve. The first source I posted that had the method header.

Thed whole thing was constructed that way for a reason I do not see since the last code I posted will suffice.

Some software programmers are too strongly typed with their code listings.

-=-=-
DNA