If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
anandh
Posts: 61 Joined: Thu Sep 14, 2006 12:40 pm
Contact:
Post
by anandh » Sun Oct 14, 2007 11:31 am
I'm working on card game.
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24361
I'm using GUI images for card.is there is in build method to swap 2 image.
If there is custom method plz share your knowledge.It will be great help for my game.
anandh
Last edited by
anandh on Thu Oct 18, 2007 4:45 am, edited 1 time in total.
belfegor
Posts: 383 Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia
Post
by belfegor » Wed Oct 17, 2007 12:20 pm
What do you mean by "swap 2 image"?
Code: Select all
img1->setVisible(false);
img2->setVisible(true);
Small FPS demo made using Irrlicht&Newton
DEMO
Info
HERE
Its at very early stage but i think im crazy enough to finish it all alone.
anandh
Posts: 61 Joined: Thu Sep 14, 2006 12:40 pm
Contact:
Post
by anandh » Thu Oct 18, 2007 4:21 am
I add 2 GUI images called I1 and I2.
I1 rendered first
I2 rendered next
If i call some method I1 have to come front of I2.
belfegor
Posts: 383 Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia
Post
by belfegor » Thu Oct 18, 2007 5:43 am
Try switching texture of the surfaces.
Small FPS demo made using Irrlicht&Newton
DEMO
Info
HERE
Its at very early stage but i think im crazy enough to finish it all alone.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Thu Oct 18, 2007 8:13 am
Just move the images on the stack, call bringToFront()