Game Development Community

Rotating Sprites in C

by Peter Robinson · in Torque Game Builder · 10/10/2005 (5:33 am) · 1 replies

I've spent the last few weeks trying to optimize my game as it's become almost unplayable in it's current state. I've found that the biggest drain on time is that every bad guy and good guy has a repeating scheduled function that rotates it toward the direction it's moving. I have feeling that this exactly that sort of thing that I should be doing in the engine. I've never really touched the engine yet, so does anyone who has know if this sort of thing would be possible?

-Peter

About the author

A programmer who has been using the Torque2D game engine since the early adopter days. My game is Pirate Code and it can be found at www.circuithive.com. It will be arriving on Steam in 2016.


#1
10/10/2005 (3:18 pm)
Your idea can can be done and has been done:
Rotate To Extension

Personally I am trying to create a more "advanced" update method for not just rotation changes, but colors, and movement as well:
My latest .plan

Don't hesitate to hack away at the engine internals. At first you won't know what you're doing, but that's perfectly normal. Once you start to understand what's going on, it can be fairly rewarding.