Game Development Community

iPhoneTouch Event Not Returning Question (solved)

by rennie moffat · in iTorque 2D · 03/29/2011 (9:11 am) · 9 replies

Hi,
For some reason my game.cs is not returning my echos placed inside the onIPhoneTouchXXX events. I have created a new project, 3-4 times. Echoes do return in the RainDays example, I have compared the two game.cs' and they are identical.
This is annoying as I want my dragging to be draggin around town.


Anyhow, if anyone has/knows of any other scripts I should be double checking to make sure the game.cs is working please pass info. Beyond that, now that I have posted I am sure it will start working.


CHEERS!



About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
03/29/2011 (9:23 am)
@rennie - You already have a thread about this Stupid S Word. Exact same problem. Just bump that thread. Is it the same code you posted there?
#2
03/29/2011 (9:25 am)
Your other thread, blatantly wrong is also a repeat of the problem. Have you checked that solution again?
#3
03/29/2011 (9:26 am)
No it is different.

That thread would not return an echo with %this. There is no %this parameter in the touch functions.




In a brand new project, this will not call when I touch my device screen.

function oniPhoneTouchDown( %touchCount, %touchX, %touchY ) 
{
	echo("on iPhone down");
}
Nor this.
function oniPhoneTouchMove( %touchCount, %touchX, %touchY ) 
{
	echo("on iPhone move");
}


Beyond me. I know that should not be the case but currently is.


:s
#4
03/29/2011 (9:28 am)
Does multi-touch need enabling?

I forget
#5
03/29/2011 (9:33 am)
Oh S Word. You guys are always right. I am so sorry.



Really apologize I think I have bad memory. I literally messed with this for most of yesterday and today, showing restraint not to post. At least now, I think I have leant my lesson.


CHEERS!
#6
03/29/2011 (1:06 pm)
READ. READ CODE. CODE
#7
03/29/2011 (1:07 pm)
I think in your case Rennie it should be:

Read. Read. Read Code. Read Code. Code.
#8
03/29/2011 (1:17 pm)
I think in your case it should be har dee har ha har.

but, ok, no excuses.

Cheers!



#9
03/29/2011 (1:19 pm)
I'll continue to help, but I will endlessly say "Read. Read Code. Code". It's much better than my alternative phrase:

img842.imageshack.us/img842/3578/rtfm.jpg
#10
03/29/2011 (1:32 pm)
yah.
guess i thought I knew it all, but really, since I had swapped a 1.4 project into 1.4.1 and had been "cross pollinating" with various files I thought maybe something had gone wrong, etc etc.