Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,078 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem attaching action to sprites... Pls Help #11293
12/16/02 22:40
12/16/02 22:40

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi there, have a problem dealing with sprites...

I made an animated sprite in pcx format and imprted it into the game. I open the scripts and intend to assign an action to the sprite in order to control the frame movements.

Take at look at my action:

action sprite
{
my.transparent = on;
my.alpha = 100;
while(1)
{
my.frame += 1.5 * time;
if (my.frame > 24)
{
my.frame -= 24;
}
wait(1);
}
}

But the problem is, when I attach this action to the sprite, build it, and run it, I got a pop up error message saying "<SPARKS+24.PCXSPRITE>: Can't open file" what is wrong here? By the way, my sprite name is sparks+24.pcx Thanks alot!

Re: problem attaching action to sprites... Pls Help #11294
12/17/02 01:54
12/17/02 01:54
Joined: Oct 2002
Posts: 471
USA - Tennessee
JayG Offline
Senior Member
JayG  Offline
Senior Member

Joined: Oct 2002
Posts: 471
USA - Tennessee
It sounds like you have defined your sprite improperly.

It needs to be something like

bmap bmSmoke = <SmokePart.pcx>;

or

string Smoke = <SmokePart.pcx>;

Re: problem attaching action to sprites... Pls Help #11295
12/17/02 04:00
12/17/02 04:00
Joined: Nov 2002
Posts: 792
Berne, Switzerland
elsewood Offline
User
elsewood  Offline
User

Joined: Nov 2002
Posts: 792
Berne, Switzerland
Maybe your 3DGS version does not like that the name is not 8.3 ??
Try with spark+24.pcx instead of sparks+24.pcx


A bus station is where the bus stops. A train station is where the train stops.
On my desk I have a workstation...
Re: problem attaching action to sprites... Pls Help #11296
12/17/02 09:28
12/17/02 09:28

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



quote---I got a pop up error message saying "<SPARKS+24.PCXSPRITE>: Can't open file" what is wrong here? By the way, my sprite name is sparks+24.pcx Thanks alot!

your problem is very simple. can't open file is because its not in the right dir. example if your game is in c:\programs\gstudio\work put your pcx file there, if its programs\gstudio\work\mygames
well by now you should know.the reason i know this is because you aleast posted the code you
using, and i tested it it, along with your pcx name, and it works ok for me, pcx grows and grows smaller, exactally as the code call for. one pointer, with pcx file watch your format size, around 144x192 is good.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1