Several doubts
![Diegan](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi, i have several small doubts and decided to open just one thread for them ![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
1- Using the 'reset scene' behaviour does not reset the values of atributes, right? So if I have events in that scene tied to certain atributes, I should also manually put all those attributes to the values that they should have for that scene to work like it's been reseted, right?
2- What is the 'Interpolate' behaviour commonly used for?
3- I made the Arkanoid type of game in the youtube series that teaches you how to make it. I already have it on my iphone and I have 2 questions:
- A lot of times, the ball bounces and the bounce becomes a straight linear pattern, and there's no way for me to alter that line. If it bounces up and down, I can just make it bounce in a straight line up again with the moving bar, or let it die. And if it becomes a horizontal pattern, it just stayes there, bouncing from one wall to the other, and I the only thing to do is reset the game. How could I make it so it never behaves in that pattern?
- I noticed that if I open the game while holding the iphone in a landscape position, it opens the game in portrait but the wrong way (portrait IN landscape mode, hard to explain and very bad-looking), and I cant correct it. I gotta open the app again while holding the iphone in portrait position. How can I fix this?
Thank you guys.
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
1- Using the 'reset scene' behaviour does not reset the values of atributes, right? So if I have events in that scene tied to certain atributes, I should also manually put all those attributes to the values that they should have for that scene to work like it's been reseted, right?
2- What is the 'Interpolate' behaviour commonly used for?
3- I made the Arkanoid type of game in the youtube series that teaches you how to make it. I already have it on my iphone and I have 2 questions:
- A lot of times, the ball bounces and the bounce becomes a straight linear pattern, and there's no way for me to alter that line. If it bounces up and down, I can just make it bounce in a straight line up again with the moving bar, or let it die. And if it becomes a horizontal pattern, it just stayes there, bouncing from one wall to the other, and I the only thing to do is reset the game. How could I make it so it never behaves in that pattern?
- I noticed that if I open the game while holding the iphone in a landscape position, it opens the game in portrait but the wrong way (portrait IN landscape mode, hard to explain and very bad-looking), and I cant correct it. I gotta open the app again while holding the iphone in portrait position. How can I fix this?
Thank you guys.
Comments
2 typically moving actors, rotating, fading alpha and so on
3 create some invisible obstacles for it to hit at the outside edges
Check all your Scenes auto rotation to make sure landscape is not checked or vice versa
3 - Invisible obstacles? how could I without the player noticing it? Isn't there a smarter way? Maybe I dont understand exactly what you mean.
Let's say you place very small invisible round colliding non moving actors at different positions along the edges to keep it from getting stuck in a path. Otherwise I think somebody came up with a collide rule that changed the angle when it hit walls to keep it out of the stuck up down colliding
You want to move your actor to a new position based on your player's touch.
make a rule that says- On player touch 'interpolate' over 1 second my actor's X and Y position to player touch X and Y (using 2 interpolates),
If you want to fade out an actor to invisible-
interpolate self colour alpha to 0
hope that helps.
kipper
Wow, that collide rule that changes the angle would be awesome to have, but dunno how to start looking for it... if I search 'Arkanoid' in the forum search, I get nothing of import...
________________________________
【ツ】iPhone Icon Pack 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System
When you say 'search in the creator', you mean the free demos that people make available for everybody?
When you find them just double-click on them and you will be able to open and edit the projects.
________________________________
【ツ】iPhone Icon Pack 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System