Post by Wayne Rayner on Aug 25, 2011 9:55:43 GMT -5
How would you use the mouse to rotate a sprite. As in for a topdown shooter. I have tried but I have no theory on how to use a mouse to control a sprite infact I don't understand the mouse_xd() and mouse_yd() actually I thought * them together in sprsetangle function but that failed. For some reason I have no clue how this works.
If you can help me that will be awesome. If you can give me an explanation that would be awesome as well
If you want to rotate a sprite using the mouse I think you'll need to use the atn2d command. A few years ago nicky wrote this program which drew a line from the centre of the screen to the location of the mouse. The same technique could be used to rotate a sprite.
Okay Wayne, I had a few spare hours today so I knocked together a program that will rotate a sprite to point in the direction of the mouse-pointer. It's basically a combination of a two programs written by nicky & adam.
Post by Wayne Rayner on Aug 28, 2011 18:35:07 GMT -5
Thank you matthew you are to helpful.
I'm sorry for not being on sooner but I have had a wild weekend I went clubbing and got toataly smashed. I got home last night but wasn't in the mood to do anything. I'm hoping to get a gameplay test soon. So the game will use a lot of programs used in basic4GL but I like to use flash for my graphics as it is easy and fast for me (other graphics will be made in Art Studio Basic created by Crazynate and Tilemaps will be made by Tilemap Creator created by shadow. I'm thinking about writing a sound studio for creating various sounds for games but that will take a while, still going to try it out.
Post by Wayne Rayner on Aug 29, 2011 18:30:05 GMT -5
Well it will be an interesting project, but I did say that I will use flash for creating the player and the zombies as it I like using vector based graphics as they are easy to make.
As for other tools a Sounds program is a good idea, it will allow to make sounds easily, Basic4GL needs a program like that made from it, and the Art Studio Basic is good for graphics and Tilemap Creator is good as well. I believe that will be all I need but I'm probably missing a few other programs