Sorry to be posting in your post without being a Master at GS BUT just trying to help you I would say 2 things for you check out into your project:
1) Instead of the move relative to the "actor" try putting it relative to the scene; 2) I do not know about that 0,05 you have put as value for the accelerometer but would try a smallest number there as 0,01 maybe...
The attribute can be Integer and about the Global variable that QS said, if I understood well him wanted to mean as Global Attribute an Attribute in the GAME and not the Actors or Scenes as being a Game Attribute it can be "read" by any part of the game.
ok I understand, but integrate the attribute value can be 1? if the player first touches start and is not in options, this finger playing with the default
Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] .... I DO NOT UNDERSTAND THIS, THE RULE IS WELL accelerometer?? ACTOR DOES NOT MOVE MY NEVER with the accelerometer BUT WHEN SELECTING THE TOUCH
uff does not work, the rules and had well before the problem is that when I select the menu accelerometer, then the player does not work, the accelerometer reacts.
One important thing I do not want an iphone two controls and one for web, I want two controls for iphone, touch control and accelerometer 1 control, only to iphone, iphone web and do not want
Comments
Have an option where you choose which control you use.
If they choose finger, make 'control=1'
If Accelerometer, make 'control=2'
Then on your player character, have two sets of rules:
If control = 1
Put finger code here
if control = 2
Put accelerometer code here
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
attribute game control = 2
rule- right;
attribute game acelerometery < -0,05
move relative to actor additive
rule - left
attribute game acelerometery > 0,05
direction 180 etc etc
something wrong?
Sorry to be posting in your post without being a Master at GS BUT just trying to help you I would say 2 things for you check out into your project:
1) Instead of the move relative to the "actor" try putting it relative to the scene;
2) I do not know about that 0,05 you have put as value for the accelerometer but would try a smallest number there as 0,01 maybe...
Hope you solve your problem.
See yah,
PS: Sorry if I misunderstood something.
http://gamesalad.com/wiki/how_tos#controls_iphone_ipad_and_web
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
You can add attributes by pressing the middle tab at the top where all your actors are shown (it's called 'attributes'.
Then press the '+' symbol to add the integer - call it 'Controls' (or whatever you like)
If you have an options scene, you can make two buttons (to make it simple)
When you press button 1, make the integer = 1 (we called it 'control' earlier, but you can call it what you want)
If you press button 2, make the integer = 2
Then, in your actor, put the rule:
If attribute controls = 1
Put in your code for accelerometer
If attribute controls = 2
Put in code for other control system.
The 'controls' attribute does not change unless you press the buttons mentioned.
I hope that helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
<img src='http://img718.imageshack.us/img718/41/mmmmt.png' border='0'/>
Uploaded with ImageShack.us
Then do everything.
You want a rule like that that says:
If game controls = 1
Do accelerometer stuff
And then another rule
If game controls = 2
Do keyboard move stuff
I'm not sure how I can make it any clearer without repeating myself - sorry!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]
.... I DO NOT UNDERSTAND THIS, THE RULE IS WELL accelerometer?? ACTOR DOES NOT MOVE MY NEVER with the accelerometer BUT WHEN SELECTING THE TOUCH
If you send it over I can give you hand: giacomopoppi@gmail.com
http://img836.imageshack.us/img836/8318/bugjl.png
rule left
move is relative to ACTOR
Whilst
rule right
move is relative to SCENE
Change one of them based on your needs. Then it should work.
Giacomo
https://files.me.com/qsheep/ntrqx6
Good luck.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I'm sure QSs demo will give you all the answers you need
Giacomo
Have you tried the project I posted?
It shows you how to change the controls.
If you play it in the preview, you will be able to move left and right with the keys.
If you play it in the iphone viewer, you will be able to use the accelerometer.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
There are some spanish users on the forum, try contacting them with a spanish thread (I'm not sure if that is allowed though
Giacomo