As explained in the title, I’ve upgraded my BB to Unity5 to put the WebGL build together, but when I test play in the editor, the bricks break but do not bounce the ball, so the ball continues on it’s previous trajectory. If anyone could give advice on what I broke, I would appreciate it!
It’s late and trying to figure this out has given me a headache, so if anyone needs to see my script I will sort out pastebin in the morning. In the mean time feel free to speculate.
Cheers
James
Here’s the pastebin link to what I think is the relevant code (brick.cs)
I’m fairly sure it’s not the ball as it still bounces off bricks that require multiple hits. It’s only on the one hit bricks, or the final hit on the multi-hit bricks, that the ball just continues on the same route and doesn’t bounce.
I’m really not sure what I’ve done so wrong that Unity5 doesn’t like it
http://pastebin.com/6QjbtJbc
For a visual record of what is wrong, I captured this video
Apologies for the odd sounds in the background, my 2 year old has a strange taste in videos on his tablet…
James, any chance you could zip the project folder and pop it on google drive or something, so I can download and take a look. just to see the whole picture so to speak.
sometimes the tags etc used to get a bit messed up when porting up to 5.x.
No problem @OboShape this should do it let me know if that works. The script should be pretty standard to what was covered in the course which is why I dont get why it’s gone awry!
Just downloaded and opened in in Unity.
seems to work the way it should, ive captured a quick video with OBS and popped it on youtube so you can see what im seeing, im using version 5.5.0f3.
Edit : Just noticed its built on v 5.3.
just trying to switch platform to WGL, to see how that behaves, seems ok on my version.
not too sure whats happening there.
OK I’ll try it on 5.5 and see how that goes, I’m pretty sure half my hard drive is just different versions of Unity at this point… Thanks for the help!
1 Like