toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
I am stupid.
idoistuff
Member
Posts:
197
March 2011
edited November -1
in
Working with GS (Mac)
how would I make it so when someone TAPS (ipad) player moves to the tapped position?
http://dl.dropbox.com/u/11172522/touch.png
Comments
BramHoddssd
Member
Posts:
414
March 2011
(Make this rule on the player you want to move)
When touch is pressed
Change atribute self.Y to touch.pressed.Y
Change atribute self.X to touch.pressed.X
Something like that
idoistuff
Member
Posts:
197
March 2011
didn't work..
http://dl.dropbox.com/u/11172522/Screen shot 2011-03-03 at 11.44.43 AM.png
EDIT: trying that tshirtbooth.
idoistuff
Member
Posts:
197
March 2011
but I don't want MOUSE I want TOUCH because this will be going on the ipad.
or does mouse and touch do the same on the ipad?
idoistuff
Member
Posts:
197
March 2011
okay, thank you very much
idoistuff
Member
Posts:
197
March 2011
okay so I want it so every time player kills 10 enemies a powerup appears,
I already got powerup integer attribute
and I have
when enemy is killed change attribute powerup to powerup+1
when power up = 10 spawn speed
but this will only spawn it once, because after it will go to 20.. how do I make it so EVERY 10 it spawns power up?
I still want powerup attribute to continue counting up because I want to include achievements later.
idoistuff
Member
Posts:
197
March 2011
instead of life what would I do to make it spawn actor speed?
idoistuff
Member
Posts:
197
March 2011
I did what the video said.
but instead of doing the life attribute part I made it SPAWN actor speed.
then I put in my enemy when collide or overlap with player change game.Score to game.Score+1
it works great and spawns one speed. but when I collect 20 it doesnt spawn another.. and I even did the "change self.doit to self.doit+10
Sign In
or
Register
to comment.
Comments
When touch is pressed
Change atribute self.Y to touch.pressed.Y
Change atribute self.X to touch.pressed.X
Something like that
http://dl.dropbox.com/u/11172522/Screen shot 2011-03-03 at 11.44.43 AM.png
EDIT: trying that tshirtbooth.
or does mouse and touch do the same on the ipad?
I already got powerup integer attribute
and I have
when enemy is killed change attribute powerup to powerup+1
when power up = 10 spawn speed
but this will only spawn it once, because after it will go to 20.. how do I make it so EVERY 10 it spawns power up?
I still want powerup attribute to continue counting up because I want to include achievements later.
but instead of doing the life attribute part I made it SPAWN actor speed.
then I put in my enemy when collide or overlap with player change game.Score to game.Score+1
it works great and spawns one speed. but when I collect 20 it doesnt spawn another.. and I even did the "change self.doit to self.doit+10