Search found 11 matches

by HighBuddha
Sat Feb 24, 2007 7:56 pm
Forum: Beginners Help
Topic: Sprite drawing problem
Replies: 2
Views: 173

Sprite drawing problem

I have a sprite class setup which holds all my sprite data: position, texture-sheet, all that jazz. And a method that draws the sprite. This is the method: void CSprite::drawSprite(video::IVideoDriver* driver, bool idl) { static int current_frame = 0; core::rect<s32> spriteRect(0+32*current_frame, 0...
by HighBuddha
Sun Feb 18, 2007 2:30 am
Forum: Beginners Help
Topic: Filelist/filesystem problems -- Null pointer
Replies: 4
Views: 315

Ok, thank's for the advice. I'll try that out and edit my post if i have any further questions.
by HighBuddha
Sat Feb 17, 2007 9:21 pm
Forum: Beginners Help
Topic: Filelist/filesystem problems -- Null pointer
Replies: 4
Views: 315

well i have all my project files in one folder, and the player folder is inside that. I don't have any other folders besides the two. Is there any other possible reason why this would be happening? Or any other information that would help to solve this?
by HighBuddha
Sat Feb 17, 2007 7:36 pm
Forum: Beginners Help
Topic: Filelist/filesystem problems -- Null pointer
Replies: 4
Views: 315

Filelist/filesystem problems -- Null pointer

Hi, I have a method setup in my project that loads bmps using the irrlicht io system and I am having some touble. bool CPlayer::loadSprites(video::IVideoDriver* driver, IrrlichtDevice* device) { if(device == NULL) { return false; } if(driver == NULL) { return false; } io::IFileSystem* filesystem = d...
by HighBuddha
Sat Aug 19, 2006 2:56 am
Forum: Beginners Help
Topic: Problem swapping tiles from curser tile to map tile
Replies: 0
Views: 96

Problem swapping tiles from curser tile to map tile

I am currently developing a 2d map editor to use as a tool for a project i'm working on. A vector of CTile objects, which hold all the tile attributes, is used to draw the map. class CTile { public: int getx() { return x; } int gety() { return y; } int gettilenum() { return tilenum; } void settilenu...
by HighBuddha
Mon Jul 24, 2006 9:13 pm
Forum: Beginners Help
Topic: context sub menu question
Replies: 1
Views: 156

I am not entirely clear on what you are asking? Do you mean it doesn't have a function called addItem? or you don't know how to add an item? either way here is how to add a submenu to a context menu. first you create 2 context menus: gui::IGUIContextMenu* menu; gui::IGUIContextMenu* submenu; one wil...
by HighBuddha
Sun Jul 02, 2006 2:46 pm
Forum: Beginners Help
Topic: scrollbar and contextmenu problem
Replies: 2
Views: 4597

Thanks for the help, I will do what you said and edit my post if I run into any problems :D
by HighBuddha
Thu Jun 29, 2006 5:29 pm
Forum: Beginners Help
Topic: scrollbar and contextmenu problem
Replies: 2
Views: 4597

scrollbar and contextmenu problem

I have setup a contextmenu in my application and it shows up and I can click on File, for example. But when I click on an Item in the submenu nothing happens and I can't click on any of the other menu Items. I have looked in the API and found the function setFocus. I understand what it does, but I d...
by HighBuddha
Tue Jun 20, 2006 2:25 am
Forum: Beginners Help
Topic: Getting bmp tiles from a zip folder
Replies: 3
Views: 232

Getting bmp tiles from a zip folder

I am trying to load a zip file which has all my game tiles in it. I've gone over the tutorials and looked around the forum for some answers, but this is the best i could come up with. Could someone help me out? io::IFileSystem* filesystem = device->getFileSystem(); filesystem->addZipFileArchive(&quo...
by HighBuddha
Thu Jun 15, 2006 8:07 pm
Forum: Beginners Help
Topic: Drawing to a child window
Replies: 3
Views: 202

Sorr if I wasn't descriptive enough with my problem. I'll explain a little further. I have a window setup and inside it is a smaller window, I will use this to draw all the images in a vector which I am using as a tile list. My problem is I am not sure how to draw to the smaller window. Should I cre...
by HighBuddha
Thu Jun 15, 2006 1:13 am
Forum: Beginners Help
Topic: Drawing to a child window
Replies: 3
Views: 202

Drawing to a child window

I have a small problem and if someone could quickly answer this, that would be awsome. I have a child window setup, and i want to draw a bmp inside it, but im not sure how to do it exactly. The API doesn't help much, it only lists functions and i have know idea how to actually use them. Any help is ...