Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,696 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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,077
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,077
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