Won't compile?

I’m currently working through the 2D side-scroller tutorial videos, but for some reason I can’t compile my widget blueprint. I followed the tutorial exactly but keeps saying I don’t have a return node. I’ve attached a picture of the blueprint, any help would be great. Thank you for your time.

Jagged,

At one time the BP compiler was not so strick, and would have just returned from the “Cast Failed” execution pin without issuing a “note”. This is in truth not a error (or else where it says “note” it would say “error” and be in Red, instead of Blue). This blueprint will run (assuming there are no real errors of course). What the compiler is wanting is an explicit “return node” pinned to the “cast failed” execution pin. If you do this, it would probably be best to return a value that you can test for, that would indicate that the cast has indeed failed, so you know which return node actually executed.

Hope this helps,

.