Touch actor only work at the begining of the scene :S

tabelortabelor Member Posts: 114
edited November -1 in Working with GS (Mac)
Why when i touch the screen to push rocks, the rocks are pushed only in the 480 first widht pixels but not in the rest of the scene? My scene is 4800 width and when i touch the screen in the begining, no problem, everithing work fine. But when i advance forward the touch actor don't work, it spawn like allways, but the colission don't work, it collide only in the begining (the first 480 pixels)
Somebody can help?

A last question:
is it posible than i were "sharing" my game without knowing it? because sometimes i feel like if somebody were changing things in my game

Comments

  • tabelortabelor Member Posts: 114
    i explain how it works: i've got an asteroid field with a lot of asteroids. Sometimes you need to push these asteroids if you want to advance, so i've set up a touch sistem. i've got a trasnparent background wich is the same size of the scene (4800x320) and i've put the rules inside this background: when you touch the screen (touch is pressed) then spawn the dot actor (a big dot, no-movable, wich can collide with asteroids and actually push then when it spawns...) and it spawns in game.mouse.position X and game.mouse.position Y.
    Now here is the very strange thing: when i am in the begining everithing work fine, but when i move the ship to the right and the camera follow me, and i touch the screen, the dot spawns but the asteroids don't move at all BUT the asteroids on the left of the ship (those ones who are still in the begining screen) MOVESS!!!!! it's like the touch could not be able to spawn in an advanced area and instead of doing it, it spawns in the begining of the screen!! It's nonsense at all!! I've tryed everithing. Anybody can help or know a template who can do what i want to do?

    PD:sorry for my english, im from spain.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    http://gamesalad.com/wiki/how_tos:gsc_drag_and_drop_movement#modifications_for_non-default_scene_size

    you'll need to unlock an actor's instance in a scene and add in the camera origin offset as shown in the wiki article above.
  • tabelortabelor Member Posts: 114
    thanks!!!
Sign In or Register to comment.