Game menu [help]
3 posters
Game menu [help]
Hy!
I have to make a menu for a game, using SIO2 but I don't know where to start from.
I am new to Objective-C and it seems hard to understand SIO2 widgets. The menu has some pics (which I don't know how to load) - each button consists of a pic, and a state - when I tap something happens.
I have previous experience in programming Visual c#, Macromedia Flash, C/C++, which I've learned quickly, but Objective-C seems hard for me to understand and it's very frustrating.
Please help me with some sugestions, tutorials, examples..
I have to make a menu for a game, using SIO2 but I don't know where to start from.
I am new to Objective-C and it seems hard to understand SIO2 widgets. The menu has some pics (which I don't know how to load) - each button consists of a pic, and a state - when I tap something happens.
I have previous experience in programming Visual c#, Macromedia Flash, C/C++, which I've learned quickly, but Objective-C seems hard for me to understand and it's very frustrating.
Please help me with some sugestions, tutorials, examples..
bboyandru- Posts : 11
Join date : 2009-09-02
Re: Game menu [help]
To get you started you can check tutorial07. If you want an example of advance coding, I suggest you to check the MeditationSource garden. There's a full fledged HUD with checkbox, button and dynamic progress bar...
Re: Game menu [help]
Thanks for the response but I don't have enough money for meditation garden..
bboyandru- Posts : 11
Join date : 2009-09-02
Re: Game menu [help]
Please provide me an example with the simplest way to manage a widget as a button, because I don't find anything on the internet, and in tutorial 7 I don't know how to remove the video and have only the widget..sio2interactive wrote:To get you started you can check tutorial07. If you want an example of advance coding, I suggest you to check the MeditationSource garden. There's a full fledged HUD with checkbox, button and dynamic progress bar...
bboyandru- Posts : 11
Join date : 2009-09-02
Re: Game menu [help]
There is sample code in this thread. Just create the 4 .tga images (buttons) it needs and it will work.
https://sio2interactive.forumotion.net/sio2-engine-f3/animating-and-parenting-an-sio2widget-t457.htm
Make sure the tga's have height and width of power of 2 (e.g. 32x32, 32x64, etc)
Hope this helps
https://sio2interactive.forumotion.net/sio2-engine-f3/animating-and-parenting-an-sio2widget-t457.htm
Make sure the tga's have height and width of power of 2 (e.g. 32x32, 32x64, etc)
Hope this helps
Francescu- Posts : 136
Join date : 2009-03-18
Re: Game menu [help]
Thank you so much, but the code from there gave me 7 errors. I put it in the tutorial 7.. and I don't know how to fix... but that code seems to be what i need.Francescu wrote:There is sample code in this thread. Just create the 4 .tga images (buttons) it needs and it will work.
http://forum.sio2interactive.com/sio2-engine-f3/animating-and-parenting-an-sio2widget-t457.htm
Make sure the tga's have height and width of power of 2 (e.g. 32x32, 32x64, etc)
Hope this helps
I've repaired 5 errors but I have 2 more:
1.
sio2TimerCreate( myTimer, sio2->_SIO2window, myTimerCallback, 300 );
myTimerCallback was not declared in this scope
2.
start = sio2->_SIO2window->touch[0];
no match for 'operator =' in 'start = *sio2->SIO2::_SIO2Window->SIO2Window::touch'
bboyandru- Posts : 11
Join date : 2009-09-02
Re: Game menu [help]
Francescu wrote:There is sample code in this thread. Just create the 4 .tga images (buttons) it needs and it will work.
http://forum.sio2interactive.com/sio2-engine-f3/animating-and-parenting-an-sio2widget-t457.htm
Make sure the tga's have height and width of power of 2 (e.g. 32x32, 32x64, etc)
Hope this helps
I've resolved the bugs, the second one I commented it, I've added 4 tga's with 64X64 size from sio2 data/textures folder fire.tga with 4 names (a.tga, b.tga, c.tga, d.tga), but the simulator doesn't show anything when I run the code.. I don't know what is the problem.
bboyandru- Posts : 11
Join date : 2009-09-02
Re: Game menu [help]
bboyandru wrote:Francescu wrote:There is sample code in this thread. Just create the 4 .tga images (buttons) it needs and it will work.
http://forum.sio2interactive.com/sio2-engine-f3/animating-and-parenting-an-sio2widget-t457.htm
Make sure the tga's have height and width of power of 2 (e.g. 32x32, 32x64, etc)
Hope this helps
I've resolved the bugs, the second one I commented it, I've added 4 tga's with 64X64 size from sio2 data/textures folder fire.tga with 4 names (a.tga, b.tga, c.tga, d.tga), but the simulator doesn't show anything when I run the code.. I don't know what is the problem.
I've downloaded 4 32X32 tga images and use them in the project, but the iPhone simulator still doesn't show anything but a black screen.
bboyandru- Posts : 11
Join date : 2009-09-02
Similar topics
» Menu items in SIO2
» create menu or interface with blender
» How to control the game fps?
» number of moving physics objects
» how to make a new game
» create menu or interface with blender
» How to control the game fps?
» number of moving physics objects
» how to make a new game
Permissions in this forum:
You cannot reply to topics in this forum