2 registered members (AndrewAMD, TipmyPip),
16,005
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
2 simple questions about entitys and buttons
#204737
05/01/08 13:01
05/01/08 13:01
|
Joined: Feb 2007
Posts: 53
n00bie
OP
Junior Member
|
OP
Junior Member
Joined: Feb 2007
Posts: 53
|
Hi, Question 1: How do you translate this from C-script to C-lite? When I want to test the engine says that entity not excist... Question 2: button (50, 250, "bitmaps//startknop2.pcx", "bitmaps//startknop.pcx", "bitmaps//startknop3.pcx", start_simulatie, NULL, NULL); This won't work. Why it won't work? The pcx files are stored in the folder "bitmaps".
Last edited by n00bie; 05/01/08 13:02.
|
|
|
Re: 2 simple questions about entitys and buttons
[Re: n00bie]
#204738
05/01/08 13:04
05/01/08 13:04
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
A1:
ENTITY* red;
A2: try defining bitmaps before you use them.
3333333333
|
|
|
Re: 2 simple questions about entitys and buttons
[Re: Quad]
#204742
05/01/08 13:20
05/01/08 13:20
|
Joined: Feb 2007
Posts: 53
n00bie
OP
Junior Member
|
OP
Junior Member
Joined: Feb 2007
Posts: 53
|
The engine gives the error: Entity undeclared identifier A2: try defining bitmaps before you use them.
How do you mean this? 
|
|
|
Re: 2 simple questions about entitys and buttons
[Re: n00bie]
#204753
05/01/08 14:28
05/01/08 14:28
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
make sure you are using .c extension for your script file and make sure you ve written capitals as i ve written.
ENTITY* must be all capital letters.
for defiing bitmaps:
for lite-c: //bitmaps defined this way. BMAP* sbutton1 = "bitmaps//startknop2.pcx"; BMAP* sbutton2 = "bitmaps//startknop.pcx"; BMAP* sbutton3 = "bitmaps//startknop3.pcx";
button (50, 250,sbutton1,sbutton2,sbutton3, start_simulatie, NULL, NULL);
3333333333
|
|
|
Re: 2 simple questions about entitys and buttons
[Re: Quad]
#204769
05/01/08 15:50
05/01/08 15:50
|
Joined: Feb 2007
Posts: 53
n00bie
OP
Junior Member
|
OP
Junior Member
Joined: Feb 2007
Posts: 53
|
ENTITY* must be all capital letters.
It are capital letters, but still the same problem... I've use by the way Gamestudio A7.07. And thanks for the explaining of bitmaps. This works.
Last edited by n00bie; 05/01/08 15:51.
|
|
|
Re: 2 simple questions about entitys and buttons
[Re: n00bie]
#204770
05/01/08 15:56
05/01/08 15:56
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
are you including acknex.h ???
add this as first line #include <acknex.h>
3333333333
|
|
|
|