About Store Forum Documentation Contact
Donations:
345$/mo



Post Reply 
How to show cursor ?
Author Message
Truelegend Offline
Member

Post: #1
How to show cursor ?
Hello, I want to ask u. How to show a Cursor. And change picture of it smile

Thanks
07-01-2011 07:06 PM
Find all posts by this user Quote this message in a reply
Morto Offline
Member

Post: #2
RE: How to show cursor ?
its one of the tutorials,

Code:
/******************************************************************************/
#include "stdafx.h"
/******************************************************************************/
void InitPre()
{
   App.name("Mouse Cursor");
   Paks.add("../data/engine.pak");
}
/******************************************************************************/
Bool Init()
{
   Text_ds.color =BLACK;
   Text_ds.shadow=0;
   return true;
}
/******************************************************************************/
void Shut()
{
}
/******************************************************************************/
Bool Update()
{
   if(Kb.bp(KB_ESC))return false;

   if(Kb.bp(KB_1))Ms.cursor(Images("../data/gfx/cursor/0.gfx")); // if '1' pressed change cursor to '0.gfx'
   if(Kb.bp(KB_2))Ms.cursor(Images("../data/gfx/cursor/1.gfx")); // if '2' pressed change cursor to '1.gfx'

   return true;
}
/******************************************************************************/
void Draw()
{
   D.clear(WHITE);
   D.text (0,0,"Press '1' or '2' to change mouse cursor");
}
/*****************
07-01-2011 07:43 PM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #3
RE: How to show cursor ?
But in 3d pfft
07-01-2011 08:47 PM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #4
RE: How to show cursor ?
you want a 3d cursor?
07-01-2011 10:30 PM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #5
RE: How to show cursor ?
no. But when i have 3d scene. I want 2d cursor on it. I want to use PhysX Hit
07-02-2011 11:03 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #6
RE: How to show cursor ?
xD






check tutorial

There is always evil somewhere, you just have to look for it properly.
07-02-2011 11:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #7
RE: How to show cursor ?
I have solved this. I have cursor right now pfft
07-02-2011 11:50 AM
Find all posts by this user Quote this message in a reply
Post Reply