Search found 15 matches

by Alx101
Wed Feb 22, 2012 8:53 pm
Forum: Beginners Help
Topic: [Solved]Class error
Replies: 1
Views: 164

Re: Class error

Solved it!
by Alx101
Wed Feb 22, 2012 8:32 pm
Forum: Beginners Help
Topic: [Solved]Class error
Replies: 1
Views: 164

[Solved]Class error

I keep getting this error when i try to add a custom camera: C:\Project\main.cpp|107|error: expected primary-expression before '->' token| and here is the code           ICameraSceneNode* camera;         camera = ControllableCamera->addControllableCamera();   Tell me if you need the source to the ca...
by Alx101
Wed Feb 15, 2012 1:27 pm
Forum: Code Snippets
Topic: Camera for RPG
Replies: 8
Views: 3475

Re: Camera for RPG

Thanks!
by Alx101
Tue Feb 14, 2012 4:21 pm
Forum: Code Snippets
Topic: Camera for RPG
Replies: 8
Views: 3475

Re: Camera for RPG

Soo. How do i use this? Any examples?
by Alx101
Mon Feb 13, 2012 2:39 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Re: Mouse Buttons respons as pressed down?

Oh got the initialization thing wrong. That is what i thought what you meant by initialization. The thing you meant i call to set the variable to a value.
by Alx101
Sun Feb 12, 2012 5:48 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Re: Mouse Buttons respons as pressed down?

I think i do it in here

Code: Select all

struct Mouse
{
     bool leftMouse;
     bool rightMouse;
     core::vector3df Position;
}
by Alx101
Sun Feb 12, 2012 5:12 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Re: Mouse Buttons respons as pressed down?

But don't i do that in the struct Mouse?
by Alx101
Sun Feb 12, 2012 3:38 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Re: Mouse Buttons respons as pressed down?

It works now. Thank you so much for your patience in the unskilled ones
by Alx101
Sun Feb 12, 2012 3:36 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Re: Mouse Buttons respons as pressed down?

Oh ok. Didn't realize that. However i cant init the struct inside of the class since it gives me an error that should not be there :C.
by Alx101
Sun Feb 12, 2012 3:22 pm
Forum: Beginners Help
Topic: Mouse Buttons respons as pressed down?
Replies: 9
Views: 300

Mouse Buttons respons as pressed down?

Hi, im having a problem with my code. Irrlicht seems to register that my mouse buttons it pressed down even though i don't press them. It is either that or my error checking is wrong. Source #include <irrlicht.h> #include "driverChoice.h" #include <iostream> #include "lua_inc.h" ...
by Alx101
Sun Feb 12, 2012 3:10 pm
Forum: Beginners Help
Topic: Erro in struct usage
Replies: 12
Views: 478

Re: Erro in struct usage

Thanks! Sorry, i looked it throught but im very tired as of now, and i forgot the error checking progress. Thanks again!
by Alx101
Sun Feb 12, 2012 2:57 pm
Forum: Beginners Help
Topic: Erro in struct usage
Replies: 12
Views: 478

Re: Erro in struct usage

I have done some changed wich fixed the problem. First i tried to make a mouse class and friend it to the EventH but it wouldnt work, neither if it inheritaged (sorry for bad english) from the EventH. So i declared the struct outsid of the calss, it works. But only one problem XC #include <irrlicht....
by Alx101
Sun Feb 12, 2012 2:23 pm
Forum: Beginners Help
Topic: Erro in struct usage
Replies: 12
Views: 478

Re: Erro in struct usage

serengeor wrote:You can define it, as you already did. You just didn't declare a variable that could be used.
Do
MouseState state;
and use 'state'.
I have tried that but it won't let me use it's member functions XC
by Alx101
Sat Feb 11, 2012 10:15 pm
Forum: Beginners Help
Topic: Erro in struct usage
Replies: 12
Views: 478

Re: Erro in struct usage

Well i can't define it, because its inside a class. And i cant do receiver.MouseState.LeftMousetc. Because it wont let me. And i can't use receiver.SMouseState.LeftMouseButton because it won't let me! :? WHAT IS WRONG HERE! I guess i could make it in another way, making a class that inherits from th...
by Alx101
Sat Feb 11, 2012 7:09 pm
Forum: Beginners Help
Topic: Erro in struct usage
Replies: 12
Views: 478

Erro in struct usage

Hey, im having issues with my compile (Code::Blocks) Telling me i use a struct in the worng way, even tho i know you can use it that way. And if not, how do i transform a vector3di -> vector3df? Source Code: #include <irrlicht.h> #include "driverChoice.h" #include <iostream> #include "...