Blockland Forums > Modification Help
Stunstick tumble.
<< < (3/6) > >>
Destiny/Zack0Wack0:

--- Code: ---function stunstickProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%time = 3000;//milliseconds
%col.setWhiteOut(%time / 1000);
tumble(%col, %time);
}
}

--- End code ---
Butler:

--- Quote from: Destiny/Zack0Wack0 on June 04, 2011, 08:13:21 PM ---
--- Code: ---function stunstickProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%time = 3000;//milliseconds
%col.setWhiteOut(%time / 1000);
tumble(%col, %time);
}
}

--- End code ---


--- End quote ---

So, whiteout for 3 milliseconds and tumble for 3 seconds?

I assume this:

--- Code: ---(%time / 1000)

--- End code ---
Is a math operation in which the resulting value would be 3 milliseconds.
MegaScientifical:

--- Quote from: Destiny/Zack0Wack0 on June 04, 2011, 07:41:27 PM ---Please don't talk useless stuff. No one cares about his formatting.

--- End quote ---

Advice against massive page stretches is not "useless stuff," as you so elegantly put it. The fact that most of the post text is now off screen should be enough to convince you this advice is valid. Please fix it, sir.

I've been checking topics so to hopefully give some advice on code, but this is highly disruptive to reading this.
Destiny/Zack0Wack0:

--- Quote from: MegaScientifical on June 04, 2011, 10:30:59 PM ---Advice against massive page stretches is not "useless stuff," as you so elegantly put it. The fact that most of the post text is now off screen should be enough to convince you this advice is valid. Please fix it, sir.

I've been checking topics so to hopefully give some advice on code, but this is highly disruptive to reading this.

--- End quote ---
There's something wrong with your browser, code blocks do have wrapping.
MegaScientifical:

--- Quote from: Destiny/Zack0Wack0 on June 05, 2011, 04:25:18 AM ---There's something wrong with your browser, code blocks do have wrapping.

--- End quote ---

It's the <pre></pre>. Doesn't have wrapping. It's doing a major, massive, annoying pagestretch.
Navigation
Message Index
Next page
Previous page

Go to full version