Dynamic Crosshair

Hi!

I’m looking to make a dynamic crosshair, one that changes according to player movement (getting bigger or smaller, kinda).

I have an action set up moving the individual parts of the crosshair depending on keys pressed, but this is not ideal.

If anyone can help, please do!

Thanks!

I would imagine that you would use a property for this, if the player velocity = 0 then the property is reduced until it is == 0, otherwise the property has a similar value as the velocity (which gets added as you start to move).

Then apply an animation actuator with the play type ‘property’ and play it whenever the property is changed.

Hmm. That could work.

I’m not entirely sure how to do all this. :smiley:

I’m still a noob.

You could use states (the little waffle like thing in the controller logic brick. Looks like layers) and messages.

When the player is running it sends a message “running” which gets picked up by a message sensor on the crosshair. They change state. The new state has an action actuator which makes it smaller and a message sensor looking for the message “walking”.

I like that idea! I’m not sure how I’m gonna do it, but I’ll be thinking of those and trying them out when I get a chance.

Also: has the site been down for anyone else?