Mr.unpredictable. Posted June 15, 2014 Posted June 15, 2014 (edited) The subway surfers project SO FAR I'VE DONE skins moving trains barrels coins music a short video, hope you like it coin pickup http://i.imgur.com/NRVQ6Ao.jpg screen shot I though of adding power ups but those were useless jetpack : just waste players will be able to go out of bounds magnet : stuck with scripting shoes : can do it with a pickup which which can change the gravity for some time but it will look ugly working on carton building on the sides for scenary please do give me suggestion and feedbacks for this project Edited May 22, 2015 by Guest
Gtagasje Posted June 16, 2014 Posted June 16, 2014 Regarding the trains, you could attach a colshape to the train which sticks out a little on the train (longer, not wider) and when the player hits that colshape you could kill it. createColRectangle() -- Create the colshape attachElements() -- Attach it to your train "onColShapeHit" -- Serversided event, triggered when a player hits a colshape killPed() -- Kill the player
Mr.unpredictable. Posted June 16, 2014 Author Posted June 16, 2014 Regarding the trains, you could attach a colshape to the train which sticks out a little on the train (longer, not wider) and when the player hits that colshape you could kill it. createColRectangle() -- Create the colshape attachElements() -- Attach it to your train "onColShapeHit" -- Serversided event, triggered when a player hits a colshape killPed() -- Kill the player thanks i will try now I'll be happy to help you with such a project. thanks, you can help me by giving me suggestion and feedbacks here
ServerBoss Posted June 24, 2014 Posted June 24, 2014 You can try making several maps and when the player starts running it will randomly select one of the several maps so that its not one make everyone can get accustom to. If you like ill help you with that, pm me.
Mr.unpredictable. Posted March 22, 2015 Author Posted March 22, 2015 Nice project can u help you with it ? Thanks, but I stoped that project coz i was not able to make proper moving train which kills ped, My script was not working fine. It would be nice if you help me with moving train which kills ped on hit.
Mr.unpredictable. Posted March 22, 2015 Author Posted March 22, 2015 ok I will start work on it That would be great, but i think it's really hard to move vehicles. 1st i tough of attaching trains to moving objects and make those objects invisible but it didn't help.
Mr.unpredictable. Posted March 29, 2015 Author Posted March 29, 2015 a short video, hope you like it coin pickup http://i.imgur.com/NRVQ6Ao.jpg any suggestions ????
Ryancit2 Posted March 29, 2015 Posted March 29, 2015 Add a matching animation on pressing down arrow to make players slip down the hurdles, by following: onClientKey -- When he presses key (down_arrow in this case). setControlState -- Disable moving backwards. [url=https://wiki.multitheftauto.com/wiki/Control_names]https://wiki.multitheftauto.com/wiki/Control_names[/url] setPedAnimation -- Set a slipping animation. -- And a function to move ped while slipping down the hurdles, can also be done within the animations. Note that disabling backwards control will make ped not move backwards but on pressing down arrow, ped will still trigger the onClientKey event and there you can add checks to move ped while slipping down the hurdles.
Mr.unpredictable. Posted March 30, 2015 Author Posted March 30, 2015 Add a matching animation on pressing down arrow to make players slip down the hurdles, by following: onClientKey -- When he presses key (down_arrow in this case). setControlState -- Disable moving backwards. [url=https://wiki.multitheftauto.com/wiki/Control_names]https://wiki.multitheftauto.com/wiki/Control_names[/url] setPedAnimation -- Set a slipping animation. -- And a function to move ped while slipping down the hurdles, can also be done within the animations. Note that disabling backwards control will make ped not move backwards but on pressing down arrow, ped will still trigger the onClientKey event and there you can add checks to move ped while slipping down the hurdles. Cool
Moderators IIYAMA Posted May 20, 2015 Moderators Posted May 20, 2015 Well it would be nice to keep the camera static. Like this: local playerCameraTarget = {0,0,0} local extendLine2D = function ( x,y,x2,y2,length ) local vx = x2 - x local vy = y2 - y local ratio = length/(getDistanceBetweenPoints2D ( x,y,x2,y2 )) vx = vx*ratio vy = vy*ratio return (x + vx),(y + vy) end addEventHandler("onClientPreRender",root, function () local playerX,playerY,playerZ = getElementPosition(localPlayer) local cameraTargetX,cameraTargetY,cameraTargetZ = playerCameraTarget[1],playerCameraTarget[2],playerCameraTarget[3] local distance2DFromCameraTarget = getDistanceBetweenPoints2D(cameraTargetX,cameraTargetY,playerX,playerY) local cameraStartX,cameraStartY = extendLine2D(cameraTargetX,cameraTargetY,playerX,playerY,distance2DFromCameraTarget+6) local cameraEndX,cameraEndY = extendLine2D(cameraTargetX,cameraTargetY,playerX,playerY,distance2DFromCameraTarget-10) setCameraMatrix ( cameraStartX,cameraStartY,playerZ+1, cameraEndX,cameraEndY,playerZ, 0, 0, 70 ) end)
Mr.unpredictable. Posted May 20, 2015 Author Posted May 20, 2015 ........ Thanks, Btw your angle was http://i.imgur.com/SOpzEwB.jpg anyway I've fixed it.
jingzhi Posted June 3, 2015 Posted June 3, 2015 The subway surfers projectSO FAR I'VE DONE skins moving trains barrels coins music a short video, hope you like it coin pickup http://i.imgur.com/NRVQ6Ao.jpg screen shot I though of adding power ups but those were useless jetpack : just waste players will be able to go out of bounds magnet : stuck with scripting shoes : can do it with a pickup which which can change the gravity for some time but it will look ugly working on carton building on the sides for scenary please do give me suggestion and feedbacks for this project Really good idea
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now