-
How to move...
Hi guys and gals. I must be looking at this wrong because it's driving me nuts! I'm looking for a way to have an active object when you hold the left mouse button down the object goes up and when you release it goes down. Pretty simple right! But I don't want to use +Y or -Y. I want it so it's smooth when raising and smooth when falling. Gravity like. I tried the built in Physics, but I must be doing something wrong, because it looks terrible. Looking for smooth up and down movement with the longer you press or hold down the left mouse the faster and same when releasing the left mouse. Again like gravity. I just can't come up with it or I'm thinking into to much!!? A mfa example would be great.
Thank you...
-
1 Attachment(s)
Hopefully this is what you're after :)
-
That is exactly what I was looking for I think. Thank you. This is a video of the game I'm trying to reproduce the movement from. It's uses mouse presses and releases for the movement. Also how is the scrolling walls done? It's endless with different types. I can't figure out how they did this.
https://www.youtube.com/watch?v=wFYx...ature=youtu.be[/video]
-
1 Attachment(s)
This is a very rough way of doing something similar, but you'd have to tweak it to somehow draw lines between the squares (I'm not sure how to do this, though).
There are no doubt much better ways of doing this that will produce much better results, but the example may be of some help to you.
-
Wow, very nice thank you. The game in the video seems like its simple, but it's not at all. Like to know how they did the lines. Looking at the game a little more,..there is physics used on the movement of the ship. Here's the link to the game. https://games.yahoo.com/game/rubble-...RTkeYA2DJXNyoA
https://www.youtube.com/watch?v=3RzP...ature=youtu.be
-
you could just scale lines from point to point that you generate. (eg. generate random points rather than random lines.
-
DaveC, that sounds great but how? Do you have an example you could post please? It would much appreciated.
-
it should only take 5 minutes to make (if how I'm imagining it would work is correct) so I should have time to do it when I get home tonight.
-
1 Attachment(s)
Thank you Dave, that would be great. It's really kind of neat how its done. The lines on the bottom and top are always the same, but they are changing as they pass and it's never ending. You'll see what I mean if you play the game. There's even a part where you run into an object and the lines that enter the right side change to straight lines for a few seconds. Thanks again!
EDIT: Weird. I was playing the game and clicked on another tab, and came back to the game in a minute or 2 and hit the left mouse button to continue and this came up?? WTH..!!??
-
Dave, any luck with putting together an example?