Object / Character animations (SOLVED)

Started by Bhup, Mon 20/12/2004 18:04:47

Previous topic - Next topic

Snarky

Nonono, a thread on a forum, a messageboard or a newsgroup is a discussion, like this. A group of messages where each response appears after the last. This thread is called "Can't move frames I want to animate to bottom left of screen".

Edit: Bhup, I'm reading this thread and trying to figure out what your problem is. It's giving me a headache. I really don't see where you can be going wrong, so the easiest thing might be to just demonstrate. I mocked up some incredibly crude pictures of the scene you describe, to show you how it can be achieved.

(Some people have been having problems seeing my pictures. If they don't show up in your browser, let me know and I'll see what I can do.)

Here's the background:


And here are the object sprites:


Put them all together and you get this:


When the guy picks up the sword and the rope, you just turn those objects off.

Now you need an animation for the guy throwing the rope:





(It's probably a good idea to make all of these equally big, because it makes it easier to position them, but I couldn't be bothered.)

When you run the animation, it will look like this:


Finally you need a picture for the rope and buoy:


This is what the picture looks like after the animation is over:


You'll need to turn off the old buoy object and turn on a new one for the rope and buoy once the throw is over, or change the sprite and reposition it.

Depending on what you want for hotspots and stuff, and differences between the animation you want and what I drew, you want to split up some objects into several, make more graphics for e.g. the boat, and lots of other things I haven't considered. This should give you the basic idea, though.

Bhup

Snarky,
Thanks that clears it up. 
Hmm.. but I am still inclined to think that it can be compared to a Java thread. Since you have many 'processes' running side by side e.g. ...'Can't move frames e.t.c' and 'say background animate the character' e.t.c.  Or do you beg to differ?

Also Strazer made a very good point about switching objects on and off to create changes to my scenes everytime an inventory item was clicked with a hotspot and I wanted the scene to change. I will make use of that but I am curious (and this is to anyone that wants to answer),how do you create a hotspot on a new background, such as background 1, or, any other background that is created other than background 0 .  I just feel that switching objects on and off my not meet all my needs in the long run.
Bhup

Snarky

Bhup, see the edit to my last response. Regarding threads, yeah the two senses of the word are probably related.

Bhup

Snarky,
Thanks for replying.  :)

Yes, I didn't notice that you had written an Epic  :P on a portion of my game.  I guess I did not see the bit under 'Edit' I only read the first paragraph of your reply before which was helpful. The pictures you have drawn pretty much explains what I am trying to do (btw, the pictures are very good,  for the purpose you used them for). I realise that switching objects on and off is probably the key to constructing what you told me I need to know and I 'allready' know what I want to do.  It s getting to use the script commands which is the problem. So if anyone cares could they please help me on the following:

1. How do you make a character appear from the boat to the beach without
the character walking in the water.  MoveCharacter e.t.c. moves the character in a a straight line, the other s do the same.  I just want to make the character appear from one position to the next thart is on the boat to the beach without him going in the water.

2. Does anynone know if you can create a hotspot on a newly created background other than the first one that is, setBackground 0. I want to create a hotspot on all backgrounds from background 1 onwards.

Bhup



Snarky

I added the bit after "Edit" after you'd written your reply, so no wonder you didn't see it!

In order to instantly move your character from where it's at to somewhere else, it used to be:

character[EGO].x = ... ;
character[EGO].y = ... ;

(You need to fill in the numbers, of course.)

That's the way to do it in AGS 2.62. With AGS 2.7 (beta) I think it's a bit different, so if you're using that you should check up on it.

Changing the background image doesn't change the hotspots, I'm fairly sure. You'll have to do that explicitly. Use EnableHotspot and DisableHotspot. You can look those up in the help file that comes with AGS.

Edit: Your current predicament seems similar to this old thread. Unfortunately, the image link is broken.

Bhup

Thanks Snarky and Strazer,

You have been a great help!

Oh yes Snarky I managed to view that link: 'Background Art versus animation on the screen'.  It helped... as there does appear to be a dilemma between Object switching and Background switching.  I'm sure we all know that you use a bit of both depending on the situation....err..I suppose. Least thats what I think.   ::)
Bhup

Joacim Andersson

Quote from: Bhup on Sat 01/01/2005 15:44:17
I am familiar with threads in Java.Ã,  They are usually used for multitasking... you know...overlap input and output operations with processing.Ã,  Is this the same definition/concept in AGS??[/spoiler]
No that's a whole other concept. When strazer mention "thread" he wasn't talking about AGS but rather this forum. The first question you asked in this forum created a new topic or thread. So this is a thread of discussion (fil de la discussion).

SMF spam blocked by CleanTalk