HomeForumsGeneral DiscussionD-Pad vs Touch in Template projct

Tagged: 

This topic has 4 voices, contains 5 replies, and was last updated by  CaseyIT 430 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
Author Posts
Author Posts
April 1, 2012 at 4:03 pm #2382

virag0

Hi,
sorry for such a newbie question, but I m having a small issue getting
the defaults for a D-Pad vs Touch control.

I have created a new game, based on the Template and slowly moving little
bits of Quexlor ino it.

I have changed my pig to another character, after packing one of Reiner’s sprites
into a spritesheet and that works fine.

But, the default for the Template is to use the D-Pad, when I just want the game
to use Touch. I noted in CharacterMenu.h there is a method to do this,
but it isn’t working for me. I looked in the game engine files and the default
is seemingly to use the Touch method, so where is the bool for d-pad or not
to be set, and how?

Thanks for a neat package. I am sure I will get this eventually!

rachel

April 2, 2012 at 2:55 pm #2383

virag0

Hmmm, OK, I got it working…. I seem to be able to get things working in fits and starts.
I did not think I would make so much progress in a short time, but the game kit is terrific.
I need to grasp a few more concepts, but I am now starting to see where the hooks in the API
are and latch onto them accordingly. I am lowering my expectations of what I can achieve as a newb and starting to feel more satisfied ;) I would love it this kit could support multi characters and turn based play down the track, which is my goal, but I think I can craft a nice RPG with this and grow
with it until I get what I want….

rachel

April 2, 2012 at 4:55 pm #2384

Nat Weiss

Hi five, Rachel!!

April 2, 2012 at 8:44 pm #2385

FW

How do you change the defaults from D-Pad to Touch or vice-versa? Also could not figure this out .

April 3, 2012 at 3:55 am #2386

virag0

Pretty much, I had to import a chunk of the CharacterMenu in as when I was playing around,
I found I was importing more dependencies, as the joypad/touch setting is also stored in the
save data. In the end, I had to import a lot more than I intended but it has worked out.
Just bring in the charactermenu files and then chop out everything you don’t want, up to the
selector for the joypad. Originally I just grabbed this bit and had it hardcoded, but decided
of course ultimately the menu was going to be useful, so I brought it all back!

I started with the basic template, but now as a result have most of the quexlor files
imported to make everything work, modified to suit my evil plan. I am going to now focus
on making a fairly straight based-on-the-kit RPG until I get better skills, then I will focus
on the turn based stuff I am really interested in. For now, I love how this kit uses the Plists
and TMX objects to drive the action. I really appreciate the power of all that….

rachel

April 15, 2012 at 3:38 pm #2427

CaseyIT

In IGK 5 — to set DPad or Touch as default check out the public method :

+(void) setDefaultState:(KITSettings*)state areaNumber:(int)areaNumber

in

RPGPlayer.m

Pete

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.