can I "tap" on an image and have it move to the back (z - debth)?
xyloFUN
Member Posts: 1,593
Hi,
I am wondering if I can tap on an image and have it move bellow another image that occupies the same screen space?
It would be easy to cycle a few pictures this way?
help?
I am wondering if I can tap on an image and have it move bellow another image that occupies the same screen space?
It would be easy to cycle a few pictures this way?
help?
Comments
That is exactly what I need to do!
The thing is that I can't google a tut orost where someone has solved or done this.
Imagine if there were say three cards (pictures) laying on top of each other and the only function they need to perform is that when the top one is tapped, it moves to the bottom of the stack!
How would I do this? Can it be done?
Thanks for you help
I owe you
John,
my old brain can not get this right! LOL
"when attribute top card = 3" and touch is pressed ....
that's where I am not able to follow.
which of the available attributes do I choose? I tried a few but none let me enter that? I must be doing this completely wrong.
Sorry to bug you again ...
If you need anymore help let me know ill be up
let's look at this puppy this way ...
say I have five cards (i have made the gfx images and added five actors and each actor has a unique name and a unique picture assigned to it.
I then go into my scene > attributes and add an integer attribute, name is "topCard"? and set it to 1 ?
i suppose i now need to go into each of the five cards and add a rule when touch is pr.
change attribute "topCard" +1
do i go into card#2 attributes and add rule when touch is pr. change attribute topCard +2? (i think i am very wrong here already)
this is very complicated for me as I have never done anything like this. But still, it would be a great solution to my problem
This is a lot to ask but if you fell like it, I'd really appreciate the help
btw, after this is implemented, my app is done
Make 1 actor call it card deck or whatever. Import your 5 card images to gs and name them card 1, card 2 card 3, 4 ,5 to make it easier. Now go add your interger attribute call it top card and set it to 1. Go into the card deck actor, Make a rule when touch is pressed change attribute top card to top card +1. Now make a new rule below that and make it when attribute top card= 5 ,Now press the + sign to add another rule in that same one, and make it when touch is pressed, then drag a change attribute behavior and make it change attribute topcard to 1. Then make five more new rules under that. Have the first one when attribute game card =1 change image to card 1. Go the second new rule and make it when attribute top card= 2 change image to card 2. Do the same for 3,4, and 5.
You should be good to go
i just want to confirm that your recipe worked beautifully!
I am speechless! You helped me so much with my first game that it is fair to say that I would have ether given up or made something really lame and far from what I have now!
Tomorrow, I will send it to Steve and ask him to stick it into the store!
This project could have not come together as it did without your help and the help of others who also provided solutions for me!
Thanks everyone! This has been a blast and my little trumpet has come a looooong way!
but now I am thinking of maybe adding a recording of the melody into ..... nah .... next time
So now I better read up on what Apple exactly needs and then it is smooth sailing!
If I would know how much sales I get, I'd purchase pro just so that I can have URLs embedded ....
What would you do John?
But there is hope that all of this work we do, creating original content will pay off sooner .... or later.
I hope that those who will help me market the software know what they are doing and hopefully we can support each other down the road. Perhaps I can give you a link once our web page is complete ... you deserve it!
I will be back on here tomorrow because I am already working on my next app!
But I have to admit that I am weary about that GS intro with is NOT suitable for end users who just play the games. They HAVE NO inner designer to feed ... me t thinks.
I hope your game does really well and I will review and buy a copy for SURE!
Thanks for all your help