yeah, the 'adventures of main guy' was a school project. I mightwin an iPod nano with it
if you look at the script for that one, you will see all the headaches I had just by looking atthe variable names lol it was hard!
Offline
I think I might be onto somthing...
Is this what you need?
I hope it is right. Sorry about the colors...
http://scratch.mit.edu/projects/daniel_j/2700991
Last edited by daniel_j (2012-07-28 08:31:39)
Offline
Well thats more like it but would be nice if somehow the ship could be controlled better but i just wondered if it would work better if there were 2 extra sprites- circulating above and below the direction your pointing at... (like for instance 2 moons and the earth in the middle... the earth is the ship... directly where ur pointing at (a distance away) is the first moon... 180% away from where ur pointing at is the other moon).... so if u could use if hit forward key (glide to x position + y position of the 1st moon) and hit backwards key to glide to the position of the 2nd moon- could that work? I could try and do this but would take me a day lol
Offline
Ok, I have no idea what you mean, do you mean 2 sprites circulating the ship? explain in more depth lol
Anyway. The script I gave you needs modifications, and you need to copy it for the other ship and change some variable names... do you want me to do it? xD
Offline
Lol sorry hehe (i got carried away + my kids destroying things in my house- hard to think )
So like directly from where the ship is pointing at (a distance away) is another spite that always stays in the same postion/ equal distance away...
180 degrees (at a distance away) from where ur pointing at is another spite.
They both move equally + at the same distance along with the direction ur pointing at. So if u turned ur ship 360 degrees- both these added on spites will move in a circle
Mayb for the first sprite directly infront of the pointing direction (glide to x position + y position of the spite) so when u hit forward key- it may glide towards it.... same with backwards key- glide to sprite thats positioned 180 degrees from the pointing direction.
I'll try it when i get time lol... see if that works... thats the only way i think it can be done other than moving the background instead of the player
Offline
Ok mate, i've modified it to work with both players, see if it what you need
http://scratch.mit.edu/projects/daniel_j/2700991
Is this right?
Offline
lol i just woke up one day and thought- wonder if i can create a flash version of the game i used to play alot but with 0 knowledge of how to do anything figured out it was best to start using scratch Thanx for ur help btw
Offline
haha that is how we all started scratch xD
check out the update I did
http://scratch.mit.edu/projects/daniel_j/2700991
Offline
I updated it again xD
http://scratch.mit.edu/projects/daniel_j/2700991
Offline
How about this:
when gf clicked forever change x by ((2)*([sin v] of [direction])) change y by ((2)*([cos v] of [direction])) if <key [left-arrow v] pressed?> turn ccw (15) degrees end if <key [right-arrow v] pressed?> turn cw (15) degrees end if <key [up-arrow v] pressed?> set [direction] to (direction) end if <key [down-arrow v] pressed?> set [direction] to ((direction) - (180)) end end
Last edited by greenfield (2012-07-28 12:53:03)
Offline
You guys, this is ridiculously easy.
when gf clicked forever if <key [up arrow v] pressed?> change [fvel v] by (1) end if <key [down arrow v] pressed?> change [fvel v] by (-1) end if <key [right arrow v] pressed?> change [tvel v] by (1) end if <key [left arrow v] pressed?> change [tvel v] by (-1) end set [fvel v] to ((fvel) * (0.95)) set [tvel v] to ((tvel) * (0.84)) move (fvel) steps turn cw (tvel) degrees
Last edited by berberberber (2012-07-28 13:07:28)
Offline
Pretty sure this is a duplicate
Offline
MoreGamesNow wrote:
Pretty sure this is a duplicate
I merged the topics.
To the original poster: Please don't make duplicate topics, just keep posting on the original.
By the way...I have some ship controls here that you might find useful
http://scratch.mit.edu/projects/Paddle2See/180740
Offline
Its not a duplicate thread i promise i just cant implement adjusting the speed to the forward key unless the controls to the ship are right first...
I tried your script berberberber but i think u've mis-understood what im after and i think the only way around it is scrollx script...
Say the forward/back key is the power.... left and right key turn... when u hit the forward key it moves forward constantly in one direction ----> While its moving ------> you can press the lefts and right keys (rotate) and the ship will still move in the same direction----->
But while your rotating the ship- if u hit the forward/backwards key again- you will move in the new direction.
The way shown on ur script moves me forward but when i hit left or right i automatically move in a new direction + move forward in that new direction.
I hope that makes sense... now is this possible? Its basically glide but is controlled using the forward and back key.
Offline
Paddle2See wrote:
MoreGamesNow wrote:
Pretty sure this is a duplicate
I merged the topics.
To the original poster: Please don't make duplicate topics, just keep posting on the original.
By the way...I have some ship controls here that you might find useful
http://scratch.mit.edu/projects/Paddle2See/180740
Yes that is perfect! tyvm- this is what im after )))) i just need to set the backkey the same and bingo! i'll look at the script now- tyvm for finding it yay
Offline
Subsidel wrote:
Looking at ur script on ur game: http://scratch.mit.edu/projects/Paddle2See/180740 How do u set the max speed to 2? Been tryin to figure it out myself for the last 3 hrs Too tierd hehe
After changing the speed, add this:
if<(speed) > (2)> set [speed v] to (2) end
Offline