Maybe I put this in the wrong spot.
Being a total Newbie I'm sure this script is not useful now. Perhaps in the c-script section where others can help me learn any mistakes or issues involved with this script.
The script worked for me but I have made all my scripts from scratch with a movement script from a tutorial that I had slightly adjusted. So it may not be at all a stand-alone script.
My game works like I want it to but it may have serious bad scripting in it and you all are too nice to tell me that.
Perhaps someone can move this post to a place for judgements and editing.