I am stuck trying to create a point system that works, my current one keeps messing up and making the points change by 200 instead of 100.
please help it is driving me MAD!!!!!
the one I am using at the moment is:
when green flag clicked
set points to 0
forever if <touching sprite 2>
hide
change points by 100
But it doesn't work...
Offline
Try adding:
"wait until <not <touching sprite2> >"
under the "change points by" block
Offline
I've tried your suggestion but STILL nothing seems to be happening...
Last edited by melikecheese (2010-06-16 13:26:33)
Offline
Oh no! Try using the seperate "forever" and "if" blocks, instead of "forever if", maybe? I'm not sure...
Offline
thanks but I've tried that before
Last edited by melikecheese (2010-06-16 13:44:05)
Offline
Sperry wrote:
Is there a change points by block in sprite2?
No.
Offline
Seems to be due to the player sprite's movement amount of 10 steps.
Tested this by changing it to 1 step, dragging the Point sprites directly in front of them, and then walking into them. No matter how many I gathered, they all scored 100 points each.
Fix: In each point sprite, change the <when green flag clicked> script to this...
<when green flag clicked>
<set{ Points }to(0
<wait until> <touching[ Sprite2
<hide>
<change{ Points }by( 100
ps. cool project, gave me some new ideas
Last edited by Locomule (2010-06-17 00:47:08)
Offline
Locomule wrote:
Seems to be due to the player sprite's movement amount of 10 steps.
Tested this by changing it to 1 step, dragging the Point sprites directly in front of them, and then walking into them. No matter how many I gathered, they all scored 100 points each.
Fix: In each point sprite, change the <when green flag clicked> script to this...
<when green flag clicked>
<set{ Points }to(0
<wait until> <touching[ Sprite2
<hide>
<change{ Points }by( 100
ps. cool project, gave me some new ideas![]()
I've tried it just now and it only works if you drag the point counter to Mr Thing. Plus after only a few tests it's decided to not work at all. Maybe It's my computer.
Last edited by melikecheese (2010-06-17 13:45:15)
Offline
Really because when I changed your script to the one I posted, it worked and I was playing it normally, not dragging anything. I did the dragging only to test your script and find the problem, not after I fixed it Make sure you change enough of the point sprite's scripts that in the game you are running into one with a new script, it will work perfectly.
Last edited by Locomule (2010-06-17 19:41:37)
Offline
Tuns out I was reading it wrong but for some reason the stupid things will not work properly some of them still change by 200, but if I click on the bad ones and then play it works fine.
Last edited by melikecheese (2010-06-18 03:18:54)
Offline
Solved the above problem and now it works fine. Thanks for all your help everyone. Am now working on a new project!
Offline