on 07-07-2012 11:29 AM
Hi there,
Is it possible to draw primitive shapes easily in GameEngine2D? Rects, circles, lines?
Cheers!
Solved! Go to Solution.
on 09-07-2012 11:21 AM
Hi CeeBee2012,
Thanks for your question. Unfortunatley there are no GE2D Nodes that will help you to achieve this, however GE2D has some DrawHelpers which may help you to achieve what you are after. An example of using the DrawHelpers are below.
ge_scene.AdHocDraw += () =>
{
Director.Instance.DrawHelpers.DrawLineSegment(new Vector2(100, 100), new Vector2(500, 500));
};
You should be aware however that DrawHelpers should be used only for debugging purposes as they are not geared for performance.
Hope this helps.
James
on 10-07-2012 06:45 AM
Thanks!
on 19-02-2013 06:26 PM
I've used the posted code but can't get it to work.
Everything compiles normally, and if I do a lot of these calls in the update loop I even notice lag, but I can't see any of the primitives I'm drawing.
Any guess as to what I'm doing wrong?
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870