Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is this how it works? #238998
12/01/08 17:53
12/01/08 17:53
Joined: Nov 2008
Posts: 25
M
MrTwiggy101 Offline OP
Newbie
MrTwiggy101  Offline OP
Newbie
M

Joined: Nov 2008
Posts: 25
Hey, sorry for this simple question. But I was just wondering if this would work in a code.

function move_forward()
{
Play "walking.animation";
//Move forward
}
............
if (key_cuu == 1)
{
move_forward;
}

Would that work? Define the function of moving forward up there, and then say, if the up arrow is pressed (key_cuu == 1) then play the walking animation and move forward. Or is that wrong?

Also, how does the code for playing an animation and moving a character forward work? Like, I know for sound, it would be like:

snd_play (beep_3, 90, 0), so is the animation like that? If so, was is it?

And what is the code for the character to actually move forward?

Re: Is this how it works? [Re: MrTwiggy101] #239019
12/01/08 21:10
12/01/08 21:10
Joined: Aug 2003
Posts: 7,440
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,440
Red Dwarf


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku

Gamestudio download | 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