Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: I<3Pindorama! on Tue 13/01/2015 19:41:25

Title: To be or not to be ... character does not appear. [disSOLVED]
Post by: I<3Pindorama! on Tue 13/01/2015 19:41:25
I would like to ask for a little help with the issue of characters.
When I use the command to animate and make the move does
not appear the VIEW selected but only the blue cup.

The command I'm using in the room is:

Code (ags) Select
character[1].ChangeView(8);
cDgF.Animate(cDgF.Loop, 1, eRepeat, eNoBlock, eForwards);
cDgF.Walk(769, 314, eNoBlock, eAnywhere); 


Am I forgetting something?
(http://i.imgur.com/bdmDM28.gif)

Setting the character-not-player:

(http://i.imgur.com/3KCugAL.png)

Thanks for any help!
Title: Re: To be or not to be ... character does not appear.
Post by: Mandle on Wed 14/01/2015 02:22:10
Hmmmm...At a guess I would say try it without the:

cDgF.Animate(cDgF.Loop, 1, eRepeat, eNoBlock, eForwards);

I say this because ChangeView should change the character's walking view and as your next line is a Walk command I think that should do the trick...

If not: Have you tried LockView instead of ChangeView? I remember having some issues with these commands and I ended up using LockView, but can't remember the exact details sorry...
Title: Re: To be or not to be ... character does not appear.
Post by: I<3Pindorama! on Wed 14/01/2015 11:28:17
When we make a stupid question, any little help is golden.
And you were more than generous my friend Mandle. Thanks!

Shame on me ...
(http://www.sfgalleries.net/art/sf2/sf2ww/series2/ryu.gif)
After that I will have
to return even my white belt.

I was so used (or addicted) to animate only objects that
I just ignored that in the case of characters was necessary
to place the animation sequence of images in each of the LOOP
directions (left, right, up, down, downleft, downright, upleft, upright).


LOOPS supplied with the sequences of images
now the friendly blue cannikin was replaced
by the image! Everything in peace now?
No ... :D

(http://i5.photobucket.com/albums/y175/k_lantis/ryu-slam.gif)

Cause when I put the following commands new questions appears:
which I hope to be less stupid than the first that i make

Try this command:

Code (ags) Select
cDrgFly.LockView(8);
cDrgFly.Move(760, 360, ENOBLOCK, eAnywhere);
cDrgFly.Animate(0, 1, eRepeat, eNoBlock);
cDrgFly.UnlockView();

MOVE or WALK

What I expect to happen:
That the non-player-character move animating to the area indicated.

What happen:
Nothing... :D
(http://i.imgur.com/MU8UkaJ.png)
The non-player-character just stay stopped and inanimate.

And try this command:

Code (ags) Select
cDrgFly.LockView(8);
cDrgFly.Move(760, 360, EBLOCK, eAnywhere);
cDrgFly.Animate(0, 1, eRepeat, eNoBlock);
cDrgFly.UnlockView();

MOVE or WALK

What happen:
Now it's move...
But inanimate...:D
(http://i.imgur.com/M1gC3EE.gif)

What I expect to happen:
(http://i.imgur.com/w1asbxu.gif)
And free... without "waits"... no blocks!

...

I'm not doing something fundamental,
just do not know exactly what it is ...

(http://i.imgur.com/tC0wW5G.png)
Title: Re: To be or not to be ... character does not appear.
Post by: I<3Pindorama! on Wed 14/01/2015 12:35:48
Man... i wanna kill me with pain!!! :P

(http://rs124.pbsrc.com/albums/p20/youchugasscock/ryu-ken-nuggie.gif~c200)

Now it's animating!

Code (ags) Select
cDrgFly.LockView(8);
cDrgFly.Animate(0, 1, eRepeat, eNoBlock);
cDrgFly.Move(760, 360, eBlock, eAnywhere);
cDrgFly.UnlockView();


But if i use eNoBlock in the Move comand the character stay stopped.
I also tried to use the AddWaypoint command but did not get any effect with
there was no addition of a new movement.

And if I use Walk instead of Move the character moves but not animate
and AddWaypoint dont work.

(http://i.imgur.com/I9aud3n.gif)

Why??? Why??? Why???

Title: Re: To be or not to be ... character does not appear.
Post by: I<3Pindorama! on Wed 14/01/2015 15:07:03
(http://i.imgur.com/odRknaT.png)
(http://ionetheurbandaily.files.wordpress.com/2012/11/tumblr_m9l5zkrk391qdyq6uo1_400.gif)
Code (ags) Select
cDrgFly.Animate(0, 1, eRepeat, eNoBlock);
cDrgFly.Move(760, 360, eNoBlock, eAnywhere);
cDrgFly.AddWaypoint(960, 360);

(http://images1.wikia.nocookie.net/__cb20120413112554/streetfighter/images/7/72/Ryu-shoryukens.gif)

Man, what a relief ... orgasmic!
Title: Re: To be or not to be ... character does not appear.
Post by: I<3Pindorama! on Wed 14/01/2015 15:36:06
The moon...

(http://i.imgur.com/XBBs3pe.gif)

... is floating.