Few Basic Questions
FastlaneSuccess
Member Posts: 46
Hey everyone,
I just started making an app and ran into a few questions. I am making a jetpack type game.
1) I made my actor to have a vertical and horizontal everytime I press "space". How do I make the rule for my actor to continuously go up when the space is held down or touch when someone is playing.
2) Actor keeps falling through platform. I was testing this before and my actor was able to sit on the platform. I forgot what I did. I set the platform to inmoveable
3) How do I get my actor to spawn on the platform ("take off area for jetpack")
Thanks a bunch, I have been learning as much as possible.
Comments
http://forums.gamesalad.com/discussion/79005/new-gs-user-hope-this-makes-you-feel-welcome/p1
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Ok, I got the impression that I won't have any of my questions answered here. I googled most of the stuff I wanted and did not find a clear answer just answers that bounced around what I wanted to know.
@FastlaneSuccess
1) Create a rule that says
-When key ´space´is down
-Put an accelerate behavior in the rule. Direction to 90, relative to scene. Speed can be whatever works best for you.
In the same rule, but in the otherwise section, put an accelerate behavior, but make the direction 270.
This will make your actor accelerate down when space is not pressed, and accelerate up when space is down.
2) You need to put a ´collide´ behavior in your actor.
3) Put a ´spawn actor´behavior in the platform.
-Spawn actor ´Jetpack dude´
-Position could be 0 for the X. Y should be half of the platforms height + half of the "jetpack dudes" height.
Hope this helps at least a little.
Mental Donkey Games
Website - Facebook - Twitter
You'll get answers all day long to questions that are clear and straightforward.
If the people you're seeking help from don't know what you're asking for help with, then it's impossible to help you.
For example: "1) I made my actor to have a vertical and horizontal everytime I press 'space'."
A vertical and horizontal what?
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Vertical/Horizontal Jump. Everytime you press space the character has a vertical of some # and a horizontal of some #. Relative to the scene
I think @NipaDidIt answered everything pretty clearly, but here it is:
3) Place the Actor where you want it to spawn.
Ok, my actor keeps flying up indefinitely when I press space once.
What I got right now for #1
Edit: Figured it out.
It´s because you have the "Change motion linear velocity Y". Remove that, and it should work.
Is the other accelerate behavior in the ´otherwise´ section of the rule?
Mental Donkey Games
Website - Facebook - Twitter