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 (TipmyPip, 1 invisible), 18,731 guests, and 7 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
Not sure if it is a BUG, but looks like #251257
02/12/09 09:23
02/12/09 09:23
Joined: Mar 2007
Posts: 34
Osasco
xandeck Offline OP
Newbie
xandeck  Offline OP
Newbie

Joined: Mar 2007
Posts: 34
Osasco
Hello all,

I have the Extra edition and I'm making a project. I made a script with character movement, get an item, etc.

I made my percent animation for character a global variables. It is running good.
But today I changed the name of this vars. For some reason, if I not let the first vars name I created, the animation (with frames) from my model crashs.

Old names:
var anim_percent;
var attack_percent;

Changed to:
var vaAnimPercent;
var vaAttackPercent;

If I change this names to another, my animation crash, the guard model stay freezed during attack animation. I tested everything and this is really the cause.

Am I doing anything wrong?

EDIT: another thing: if I change only somevars, the animation works, but then when the animation finishs, my character moves like a rocket eek

Last edited by xandeck; 02/12/09 09:32.

XandeCK
Lead Developer
JogadorVIP.com
Re: Not sure if it is a BUG, but looks like [Re: xandeck] #251279
02/12/09 11:24
02/12/09 11:24
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Variables in a programming language can have any valid name. Names only help you to remember what they do. So, when your animation does not work when you changed a variable name, there's certainly a bug. Try to find it and fix it. Most likely you used variables of the same name somewhere else. If you can't find it, use the debugger to look what's happening in your animation function. There's a debugger workshop in the tutorial.

You posted your problem in the wrong forum. "Bug Hunt" is for bugs in the software only, not for bugs in your script.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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