FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Game menu [help]

3 posters

Go down

Game menu [help] Empty Game menu [help]

Post  bboyandru Wed Sep 02, 2009 8:56 am

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..

bboyandru

Posts : 11
Join date : 2009-09-02

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  sio2interactive Wed Sep 02, 2009 3:39 pm

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...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  bboyandru Thu Sep 03, 2009 12:47 am

Thanks for the response but I don't have enough money for meditation garden..

bboyandru

Posts : 11
Join date : 2009-09-02

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  bboyandru Thu Sep 03, 2009 2:06 am

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...
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..

bboyandru

Posts : 11
Join date : 2009-09-02

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  Francescu Thu Sep 03, 2009 2:58 am

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

Francescu

Posts : 136
Join date : 2009-03-18

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  bboyandru Thu Sep 03, 2009 3:05 am

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
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.

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

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  bboyandru Thu Sep 03, 2009 3:39 am

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

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  bboyandru Thu Sep 03, 2009 3:51 am

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.Sad

bboyandru

Posts : 11
Join date : 2009-09-02

Back to top Go down

Game menu [help] Empty Re: Game menu [help]

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum