animation and "Type" code.
BlitzPlus Forums/BlitzPlus Programming/animation and "Type" code.
| ||
I am trying animation by the book. The book uses the code player:TPlayer = new TPlayer and the compiler says the Type must be in the main program and illegal type conversion. I truncated the code to read player = TPlayer and it runs but I am at a loss to deal with the incorrect code. The code uses the player.x = 400 code and I removed all the decimals so I have playerx = 400 and it runs. Again, I can't explain the difference. Is there an example program to follow. The book has chapter 7 program 2 but it is finished so it runs but no code help, demo 07.2. Is there any code examples for beginner use? Gerald |
| ||
It's impossible to say without seeing the code you're using. And possibly knowing which book you're talking about. |