Forum

> > Off Topic > BB problems
Forums overviewOff Topic overviewLog in to reply

English BB problems

6 replies
To the start Previous 1 Next To the start

old BB problems

Ultimate programmer
BANNED Off Offline

Quote
I know I am genius,but I have some problems.
DC have writen scripts where he used command "CopyMesh". But my blitz3d have not This command. I can't complate my program my version is 1.64 Please help me.


I've writen:"
Type gameparameters
Field class#
Field id#
Field name#
Field texture#
Field fx#
Field autofade
End Type
Global object3d=CreateMesh():ShowEntity object3d

Function create(class,id,p1,p2,p3,p4)Entity.gameparameters=New gameparameters
Entity\class#=class
Entity\id#=id
Entity\name#="some"

entity=CopyEntity(object3d) ;I use CopyEntity without CopyMesh
;fx
EntityFX entity,16
entity\fx#="16"
;autofade
EntityAutoFade entity,800,900
entity\autofade#="800"
ScaleEntity entity,0.01,0.01,0.01
randomnumber=Rnd(1,1000000)
If p1=randomnumber And p2=randomnumber And p3=randomnumber Then
PositionEntity entity,p1,p2,p3
LoadMesh "tank.3ds",entity
entity\texture#="tanktex.jpg"
EndIf
End Function
"



And it write me error:"Illegal type conversion" for this script

old Re: BB problems

SQ
Moderator Off Offline

Quote
It's impossible to test that because it's not whole code + I haven't got your 3D object.

You should try tob ask in Blitz forums instead of here thought.
http://blitzbasic.com/

So, your mistake was object calling.
You called type object as entity... instead that should be object/entity.
Half of code was wrong

Try this one
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Type gameparameters
	Field class#
	Field id#
	Field name#
	Field texture#
	Field fx#
	Field autofade
	Field ent#
End Type

Global object3d=CreateMesh():ShowEntity object3d

Function create(class,id,p1,p2,p3,p4)
	Local Entity.gameparameters=New gameparameters
	Entity\class#=class
	Entity\id#=id
	Entity\name#="some"
	Entity\ent=CopyEntity(object3d)
	EntityFX Entity\ent,16
	Entity\fx#="16"
	EntityAutoFade Entity\ent,800,900
	Entity\autofade#="800"
	ScaleEntity Entity\ent,0.01,0.01,0.01
	randomnumber=Rnd(1,1000000)
	If p1=randomnumber And p2=randomnumber And p3=randomnumber Then
		PositionEntity Entity\ent,p1,p2,p3
		LoadMesh "tank.3ds",Entity\ent
		entity\texture#="tanktex.3ds"
	EndIf
End Function

old Re: BB problems

SQ
Moderator Off Offline

Quote
but you said you're genius...

Have you set Graphics3D?
edited 1×, last 09.06.10 01:02:36 pm

old hahahahah

Ultimate programmer
BANNED Off Offline

Quote
hahahaha I have invited this game but i cant create it because i dont know bb much

wrote graphics3d?
Yes I am



ooooh i see you have skype as me...


You know blitzb and lua?

old Moron

Pocahontos
User Off Offline

Quote
Ha!you dont genius,only moron! Try to create 2d games, if you cant create something normal!
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview