Author Topic: VCE Help - Am I doing this correctly?  (Read 487 times)

I'm trying to make the game Breakout with bricks, but am having a bit of trouble with the events, mainly the VCE ones. Here are the ones I have thus far:

On the bottom brick (the one that you're no supposed to let the pong hit) -
Code: [Select]
[/] [onProjectileHit] [NAMED BRICK] [VCE_ifVariable] [<var:br:printcount>] [==] [0] []
[/] [onVariableTrue] [NAMED BRICK] [setPrintCount] [0]

What I'm not sure about is the following:

Should I be using VCE_ifVariable or VCE_ifValue?
Should I be using onVariableTrue or VariableTrue?

I'm trying to make the game Breakout with bricks, but am having a bit of trouble with the events, mainly the VCE ones. Here are the ones I have thus far:

On the bottom brick (the one that you're no supposed to let the pong hit) -
Code: [Select]
[/] [onProjectileHit] [NAMED BRICK] [VCE_ifVariable] [<var:br:printcount>] [==] [0] []
[/] [onVariableTrue] [NAMED BRICK] [setPrintCount] [0]

What I'm not sure about is the following:

Should I be using VCE_ifVariable or VCE_ifValue?
Should I be using onVariableTrue or VariableTrue?

Okay and see I tried that, but it didn't work. I'll try it again just to make sure I was doing the right thing.

What exactly are you trying to do? Do you have a server up in where I could help you?

Oh I so wish I did. And unfortunately I cannot get on Blockland during the school week, will you be available to help out on Friday? You might even want to stay for my event competition server.

I suppose I could host for you during the weekend, my internet is all screwy right now though. I will be able to help Friday, Saturday I can't though.

No no no, I didn't mean you host for me, I can host, I host all the time on the weekends, lol. I'm gonna have this server up, I think you've seen it already. If you could join that, it'd be much appreciated.

i do believe i see your problem immediatly.  two actually.
1.  indeed, var replacers work with the if value and not if variable.
2.  your gonna wanna say something like if_value (insert printcount var replacer) is greater than or equal to zero, not just zero.
the rest is correct.