Search found 33 matches

by spopo
Thu May 03, 2007 10:22 am
Forum: Beginners Help
Topic: EventReciever in another file?
Replies: 9
Views: 537

Or you could have your EventReceiver class something like this : // Event Receiver.h #include <irrlicht.h> struct mouse { bool left; }; struct keyboard { bool escape; }; class EventReceiver : public irr::IEventReceiver { mouse Mouse; keyboard Keyboard; virtual bool OnEvent(irr::SEvent event); public...
by spopo
Wed May 02, 2007 10:53 pm
Forum: Beginners Help
Topic: Button release event?
Replies: 6
Views: 441

Button release event?

Is there an event with button release? For example click is irr::gui::EGET_BUTTON_CLICKED. Is there something like irr::gui::EGET_BUTTON_RELEASED ?
by spopo
Tue Apr 24, 2007 5:50 pm
Forum: Beginners Help
Topic: Setting color of object without lighting?
Replies: 5
Views: 302

Use three textures?
by spopo
Sun Apr 22, 2007 3:34 pm
Forum: Beginners Help
Topic: How to properly use IAnimationEndCallBack
Replies: 9
Views: 849

Nevermind :oops:
by spopo
Sat Apr 21, 2007 2:28 pm
Forum: Beginners Help
Topic: movement
Replies: 13
Views: 892

To disable looping : node->setFrameLoop(false);

To set stand animation : node->setMD2AnimationType(irr::scene::EMAT_STAND);
by spopo
Sat Apr 21, 2007 1:45 pm
Forum: Beginners Help
Topic: problem with my class in c++ now with the real files
Replies: 5
Views: 231

Yeh, you should post the entire code, cause everything seems fine now.

And it is function, not fununction.

And (i used my telepathic abilities once again) i think you called fununction2 before fununction1, so socketadress left undefined.
by spopo
Sat Apr 21, 2007 5:59 am
Forum: Beginners Help
Topic: movement
Replies: 13
Views: 892

I'll try to use my telepathic abilities... Maybe you forgot to put receiver into the device creation function :

Code: Select all

device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(640, 480),
       16, false, false, false, &receiver);
If it's not true, just post your code here!
by spopo
Fri Apr 20, 2007 2:29 pm
Forum: Beginners Help
Topic: Collosion Detection - getting the node.
Replies: 3
Views: 288

Well if i understood your question well, then try getSceneNodeFromCameraBB, getSceneNodeFromRayBB or getSceneNodeFromScreenCoordinatesBB.

And shame on you if this is what you're asking! How can you be a project leader if you can't just check what other methods does scene collision manager has...
by spopo
Fri Apr 20, 2007 10:24 am
Forum: Beginners Help
Topic: How to properly use IAnimationEndCallBack
Replies: 9
Views: 849

To vitek: Node->setAnimationEndCallback(this); gives error C2664: 'irr::scene::IAnimatedMeshSceneNode::setAnimationEndCallback' : cannot convert parameter 1 from 'Enemy *const ' to 'irr::scene::IAnimationEndCallBack *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cas...
by spopo
Fri Apr 20, 2007 5:19 am
Forum: Beginners Help
Topic: How to properly use IAnimationEndCallBack
Replies: 9
Views: 849

Sure. Enemy.h struct anim { bool run; bool attack; }; class Enemy; class AnimCallback : public irr::scene::IAnimationEndCallBack { public: void OnAnimationEnd(irr::scene::IAnimatedMeshSceneNode* node); void setEnemy (Enemy *enemy); private: Enemy *m_Enemy; }; class Enemy { irr::scene::IAnimatedMeshS...
by spopo
Thu Apr 19, 2007 11:56 am
Forum: Beginners Help
Topic: How to properly use IAnimationEndCallBack
Replies: 9
Views: 849

Anyone there? Or are there any ways to avoid using this class? Are there any other ways to see what animation has ended?
by spopo
Wed Apr 18, 2007 6:03 pm
Forum: Beginners Help
Topic: Button and image
Replies: 4
Views: 312

I think you should use draw2DImage. You'll just have to guess the coordinates so the image would look like it's on the button. For example: driver->draw2DImage(image, core::position2d<s32>(x,y)); And i just found out that a button has a method called setImage(); Try this : gui::IGUIButton *button = ...
by spopo
Wed Apr 18, 2007 5:31 pm
Forum: Beginners Help
Topic: How to properly use IAnimationEndCallBack
Replies: 9
Views: 849

How to properly use IAnimationEndCallBack

Hello again, i came with new problems once more. Right now it's with class IAnimationEndCallBack usage. So, let's start : i have class Enemy, which has private (it could be public) members that shows which animation is currently being played, and which not. struct anim { bool run; bool attack; }; cl...
by spopo
Sat Apr 14, 2007 7:50 pm
Forum: Beginners Help
Topic: Basic C++ question
Replies: 4
Views: 306

Thanks for your detailed reply, and i want to ask another thing. Right now it's like this : Enemy.h #ifndef Enemy_h #define Enemy_h #include <irrlicht.h> class Enemy { irr::scene::IAnimatedMeshSceneNode *Node; public: void setNode (irr::scene::IAnimatedMeshSceneNode *node); irr::scene::IAnimatedMesh...
by spopo
Sat Apr 14, 2007 4:23 pm
Forum: Beginners Help
Topic: Basic C++ question
Replies: 4
Views: 306

Basic C++ question

Hello everyone, when i realised that one single .cpp file won't work for a game, i started to make an enemy class like this : Enemy.h #ifndef Enemy_h #define Enemy_h class Enemy { irr::scene::IAnimatedMeshSceneNode Node; public: void setNode (irr::scene::IAnimatedMeshSceneNode *node); irr::scene::IA...