Author Topic: DigiTrack - Some Strange Rhythm-Action Flash  (Read 1297 times)

not exactly sure what would be causing that, it might be an issue with comparison, where you're checking if the distance to the receptor is greater than a number rather than less than.

not exactly sure what would be causing that, it might be an issue with comparison, where you're checking if the distance to the receptor is greater than a number rather than less than.
No, it's that the targets cannot tell whether they are the next targets to hit

in the target instances, this is how you would check if the notes are able to be hit:

if (Math.abs(target.y - receptor.y) < n)

where target.y is the instance's y position and receptor.y is the y position of the corresponding receptor

n is however big your window is, in other words how close you want the notes to be to the receptors in order to be hit

in the target instances, this is how you would check if the notes are able to be hit:

if (Math.abs(target.y - receptor.y) < n)

where target.y is the instance's y position and receptor.y is the y position of the corresponding receptor

n is however big your window is, in other words how close you want the notes to be to the receptors in order to be hit
Ahah, thanks. Now to figure out how to make the target actually disappear
« Last Edit: April 05, 2012, 06:38:53 AM by QuantumEagle »

Okay, I'm not sure what I'm doing wrong. It's not adding to the score when I hold down Z.
Code: [Select]
onClipEvent (enterFrame) {
this._y += 3;


if (Key.isDown(90))
{
if (Math.abs(this.y - receptor_z.y) < 10)
{
_global.score += 25 * _global.combo * 1;
}
}
}
« Last Edit: April 06, 2012, 05:13:42 AM by QuantumEagle »


The *1 is a placeholder for the x2 multiplier for when I code the "perfect" zone. I'm a forgetful person.
« Last Edit: April 06, 2012, 03:59:18 AM by QuantumEagle »