Prowler Productions
  Dink Smallwood Forum
  programin question

Post New Topic  
profile | register | faq

Author Topic:   programin question
Ethan posted 01-19- 11:53 AM CT (US)   Click Here to See the Profile for Ethan   Click Here to Email Ethan  
When you create a new sprite with the Create_sprite() command, how do you get it to move and talk and stuff?


My site(just in case u wanna see it)

Radish posted 01-19- 03:46 PM CT (US)     Click Here to See the Profile for Radish  Click Here to Email Radish     
Well, somehow you'd have to assign it a script name. Then in the script you set it's base walk and brain and such. But you probably already know that. What YOU need to know is how to assign it a script name, and I don't know that either. Sorry I couldn't help.

--Radish

Wyndo posted 01-19- 04:51 PM CT (US)     Click Here to See the Profile for Wyndo  Click Here to Email Wyndo     
I looked at some of my old code. Here's how you create a sprite (example) and attach a script to it:


&junkv5 = create_sprite(&save_x, &save_y, 0, 501, 5);
sp_script(&junkv5, "pill5");

That's from Dinkanoid, to create one of the falling-pill bonuses. The command you need is sp_script().

Mike.

Wyndo posted 01-19- 04:52 PM CT (US)     Click Here to See the Profile for Wyndo  Click Here to Email Wyndo     
Woops, that appeared a lot smaller than I thought it was going to. Here it is again:


&junkv5 = create_sprite(&save_x, &save_y, 0, 501, 5);
sp_script(&junkv5, "pill5");

Ethan posted 01-19- 07:14 PM CT (US)     Click Here to See the Profile for Ethan  Click Here to Email Ethan     

Thanks a bunch mike


(that's big enough to read :->)

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.