Author Topic: 2 Code Types Needed  (Read 945 times)

I need two types of code; the first would be forcing the player to stop in midair until one stops holding the left mouse button. The second would be a code to fill the energy meter so as long as the user is clicking and holding.

1st: Freeze Mid-Air Code
2nd: Slow recharge on Click code

Thanks!

Please, I seriously need these codes.

These sound like codes you would use to cheat on a server.
Mind explaining yourself?

These sound like codes you would use to cheat on a server.
Mind explaining yourself?
How so? These would be server sided. And if you want to cheat on your own server, then so what? No one will join.

These sound like codes you would use to cheat on a server.
Mind explaining yourself?

The first set of code would freeze the user mid-air so as long as the person is holding the mouse.
The second code would recharge the user's energy so as long as they are holding the mouse.
I am trying to create a tool that uses both of these codes; similar to how Dark Samus recharges in Pecon's Boss Battles. I am not trying to replicate the original thing though, but trying to create a similar tool.


If you want left click to freeze your character, then you are going to run into a lot of annoying situations where you need to left click and having your character freeze is a side effect.  You need a better way to control the freeze than just left clicking.

If you want left click to freeze your character, then you are going to run into a lot of annoying situations where you need to left click and having your character freeze is a side effect.  You need a better way to control the freeze than just left clicking.

*sigh*

The Freeze should only continue so as long as the player is holding the mouse button, while you that particular tool is selected.
I'm not making a Playertype. I am making a tool.

Yeah you really have to be specific when you initially ask.
Because just holding left click in general would be an ::onTrigger thing.
But while holding a particular tool, it would be part of the tool's state system.

Yeah you really have to be specific when you initially ask.
Because just holding left click in general would be an ::onTrigger thing.
But while holding a particular tool, it would be part of the tool's state system.

I'd probably still use ::onTrigger but with a check to see if that item was equipped.

Yeah you really have to be specific when you initially ask.
Because just holding left click in general would be an ::onTrigger thing.
But while holding a particular tool, it would be part of the tool's state system.
only for left click. right click still requires ontrigger packaging.

edit: whoops, misunderstood.
in that case using item states is probably the cleanest method. may not result in nice simple code but it would be cleaner and easier to modify overall if you kept it to the item state system.
« Last Edit: March 12, 2016, 07:23:51 PM by Conan »

holding the left mouse button.
Which I believe is what he wants