Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
change model's action when running #83228
07/25/06 12:46
07/25/06 12:46
Joined: Jul 2006
Posts: 14
U
upczhsh Offline OP
Newbie
upczhsh  Offline OP
Newbie
U

Joined: Jul 2006
Posts: 14
I have attached am action to a model in WED.When the level is running,I wanna
attach another action to it.
How can I get it?
Thanks!

Re: change model's action when running [Re: upczhsh] #83229
07/25/06 12:54
07/25/06 12:54
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
well u can modify his action through script , or just call functions from his action when u want to change his action.

i.e. , say u wanted the player to jump 3 feet , but after eating a green tomatoe he will jump 10 feet, then u could do in his action the jump code , when pressing space bar if my.skill1>0 my jump = 10 feet , else my jump = 3 feet

that isnt actual code , just a layout of how it can be done.

Last edited by Why_Do_I_Die; 07/25/06 12:58.
Re: change model's action when running [Re: Why_Do_I_Die] #83230
07/25/06 13:07
07/25/06 13:07
Joined: Jul 2006
Posts: 14
U
upczhsh Offline OP
Newbie
upczhsh  Offline OP
Newbie
U

Joined: Jul 2006
Posts: 14
I see
Thank you,Why_Do_I_Die

Re: change model's action when running [Re: upczhsh] #83231
07/25/06 13:08
07/25/06 13:08
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
You should see all the variations in my 2D game. Take the behavior of the left shift key. When in the air, the flash attack is used and it can only be used once until certain conditions are met (after using the bounce stomp or fall-glide-hop or simply landing). When on the ground and held, the speed blast charges up. The enter key has several functions as well. It selects items in the menus, it advances through text in the interactive tutorial, and confirms input entries (from inkey - a built-in feature). Because you can jump 6 times (5 in mid-air, resetting under certain circumstances), there are various other conditions and things.

A similar thing can be done. The three important fundamentals to scripting in your case would be using and understanding if statements, and using and understanding function calls. A third is variable manipulation.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

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