spinning compass

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

spinning compass

Post by Chaos-Shaman »

It would be nice to have a spinning compass, can it be done?
keep your gor coin handy
User avatar
Ameena
Wordweaver, Murafu Maker
Posts: 7517
Joined: Mon Mar 24, 2003 6:25 pm
Location: Here, where I am sitting!
Contact:

Post by Ameena »

The compass arrow does change direction as you do, if that's what you mean...though I seem to recall it gets East and West the wrong way round...can't remember though - never use it.
______________________________________________
Ameena, self-declared Wordweaver, Beastmaker, Thoughtbringer, and great smegger of dungeon editing!
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

well i was thinking of the icon spinning instead of showing true north, or whatever direction you set it to be. want to confuse the compass user, hehe
keep your gor coin handy
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Keep having the compass convert to another version with a differnt graphic - either using items with lifetimes and have it spin, or diretcly alter the hand contents with a relay
Tonari
Craftsman
Posts: 146
Joined: Sun Jul 23, 2006 1:32 pm
Location: Japan

Post by Tonari »

It is easy to make animation by using the picture of four kinds of compasses.
This animation is made graphic of icon of compass.
Please forgive poor English.
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

ok, so convert the in hands 4 times to create the four directions, i was thinking of that, but doesn't that make a loop, could you please give me some sort of example.

I am so damn excited about learing GGs engine, wish i had of done it much earlier , i'm here now :)

thanks
keep your gor coin handy
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

You would control it with some random mechanics and have that relay abloe to be broken (hence why you'd use the relays rather than animations)

No example really, so thsi is off the top of my head and might not be best

confuse compass trigger/effect/attack/spell/ -> 2 x Relays (one activates the other deactivates a moment later) -> Counter -> four convert in dungeons (one dealing with each compass state) + final relay that targets your inital two relays

So once the effect happens the compass keeps spinning (ie changing to different versions) until something comes along to stop it - which you would do by altering the coutner and breaking the loop
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

great... i think i understand that, i'll try it.
keep your gor coin handy
Tonari
Craftsman
Posts: 146
Joined: Sun Jul 23, 2006 1:32 pm
Location: Japan

Post by Tonari »

There is a method of changing a usual compass and the compass of the rotating animation, and returning by using SWAP_GLOBAL, too.
Please forgive poor English.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

This is also true and probably the most elegant method
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

is there a way to make a null compass?, to prevent it from pointing in any direction. i can make the spinning animation compass, there are no errors, but when i pick the compass up in the game, i get a division by zero error
keep your gor coin handy
Tonari
Craftsman
Posts: 146
Joined: Sun Jul 23, 2006 1:32 pm
Location: Japan

Post by Tonari »

Combine of clone of compass might forget to be erased.
Alternate swap might be executed at the same time.

I made sample.
Please input decompression password "tonari".
The compass is confused when party is in the other side of the doorframe.
Please forgive poor English.
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

i had a moment to check that out, it seems the swap global only works if i face north, and that all the compasses only face north, there is no east west or south pointing/working compass?
i think that was my problem, can someone check and confirm that so to stop me from losing my direction
keep your gor coin handy
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Post by Chaos-Shaman »

I don't know what way I'm going here :) , but I worked on this compass thing, and you can't swap the misc_compass for a cloned compass, not even a cloned object. I had to clone the bitmaps for each direction ( it is a cloned bone) that is no longer a compass, and action_swap those bitmaps to get the spinning effect. The problem is you can't swap a misc_compass with your cloned (bone) compass, however, you can swap the cloned compass for the misc_compass. I'd like to know what makes the compass point north, maybe it's a magnetic action I need here :? damn compass, better off looking at moss on a tree :lol:
keep your gor coin handy
Post Reply