Game Development Community

Picking on CompositeSprite not usable from C++

by Jonathan Arsenault · in Torque 2D Beginner · 06/22/2013 (7:50 pm) · 2 replies

No code to commit for this ATM, but i just noticed that the picking functions on the composite sprite are only console method and not member function of the C++ class. Same with the Scene class.

About the author

Made a small foray in the gaming industry working at Citeremis, worked and offered consultation in many other sector since, passing through casino management, the wood transformation industry and the transportation sector. Eat code for breakfast.


#1
06/24/2013 (5:06 am)
You are correct. The code in those ConsoleMethods will have to be encapsulated in their own class methods to be usable from C++. The only code that needs to be left in the ConsoleMethod is the string conversion.
#2
06/24/2013 (9:51 am)
There you go https://github.com/jonharson/Torque2D/tree/patch/CppPicking
noticed also that picking ray on the collisions is not available on composite sprite so there is still that to fix i guess. This include the local/logical position geter wip functions on composite.

Added as pull request #80