Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Please help with my zombie in a barrel script

Author
Message
Programador hispano
18
Years of Service
User Offline
Joined: 11th Jul 2006
Location: Dallas, TX
Posted: 21st Nov 2010 05:23
I made a script for a zombie that I made from scratch.
The zombie has 38 frames of animation, it just springs out of a barrel. Frames:
0 - 2 opens barrel
3 - 38 zombie jumps out the barrel and tries to grab you (at least scare you.

My problem is that I want my script to do:
first stay in frame 0 which is barrel closed and zombie inside as long as the player is not in range for the first time, once the player gets in range play second animation(zombie jumps out the barrel, frames 3-38, play animation only once) and when the player goes away, play only frame 38. Here is my fpe and fpi. Please help. if you need more info please ask. I will post the zombie for free. I promise.



and fpi



there is a pic what it looks like when it jumps out the barrel.
Right now it does weird stuff, it stays inside at first, when player gets close it keeps playing the animation when jumps out the barrel and player gets away the barrel's lid keeps closing and opening whiting a couple of frames.
This is my second script. thanks.

...........(o o)........
--oooO--(_)--Oooo---

Attachments

Login to view attachments
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 21st Nov 2010 08:59 Edited at: 21st Nov 2010 09:00
Animationover=38

The number after the equal sign in this case should be the animation number not reference the frame.
Try setframe, incframe, frameatend. These give you control over the animation.

Animationover, plays the whole animation automatically.

Flatlanders FPI editpad has the commands for 117 in it. Very helpful.
http://forum.thegamecreators.com/?m=forum_view&t=129738&b=23

Take a look at one of Bond1 characters if you have a pack. Even the stock character scripts will show you examples.

Nothing but coffee in my veins

Login to post a reply

Server time is: 2024-11-24 17:06:16
Your offset time is: 2024-11-24 17:06:16