MonocleBios wrote:Combine wrote:
But sadly I can't go much further now because the tutorial i'm using just derps when teaching about TYPEs.
It seems to be lacking ALOT of explaination. So I can't understand anything :(
http://jnoodle.com/Blitz3D/lesson5.html
So yeah. RIP my attempts to be helpful and stuff.
Is there anything about types or the rest of the tutorial in particular that doesn't make sense to you?
Alot of things about the TYPEs tutorial confuses me.
For example, it never explains how exactly types are named. In the tutorial, it says
Code: Select all
Type Sprite
Field ID, char_tex
End Type
Then it stops referring to that type and just starts using a type that seems to be called "Character" from then on, Which I presume is seperate from "Sprite"
Additionally, the tutorial presents this code:
Code: Select all
For C = 1 To 3 ; 3 Characters
Character.Sprite = New Sprite
Character\ID = CreateSprite()
Read img$, X, Y, Z
Character\char_tex = LoadAnimTexture( img$, 7, 32, 48, 0, 4 )
EntityTexture Character\ID, Character\char_tex, 1
HandleSprite Character\ID, 0, -1
ScaleSprite Character\ID, 2, 2
EntityAutoFade Character\ID, 100, 120
PositionEntity Character\ID, X, Y, Z
Next
First off, How does this know which data to look at?
Secondly, img$ doesn't pop up anywhere else except here:
"Character\char_tex = LoadAnimTexture( img$, 7, 32, 48, 0, 4 )"
Which sets the image to the sprite defined (see below for the data)
The data used by the read command is this:
Code: Select all
.Characters
Data "char2.bmp", 10, 0, 10
Data "char3.bmp", -10, 0, 10
Data "char4.bmp", 0, 0, 10
But I don't know how the read command knows to look at this data.
"now that the victim is in place, the killing bite will be administered in 10 seconds." --Valve.
Beware the man that speaks in hands.
☜☝☞☟ ✌