Browse Search Popular Register Upload Rules User list Login:
Search:
I Need Help...

Image:
screenshot of the scene

Author: Golden Freddy

Group: Default

Filesize: 32.26 kB

Date added: 2016-01-16

Rating: 5

Downloads: 1115

Views: 317

Comments: 13

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

@Xray

I Know You're Gonna Think I'm Dumb When I Say This,But...I Know How To Do "True Or False" Coding In The Scripts Menu,But How Do I Make It To Where You Can't Jump (PHUNGL Does It In His "Powerball" Series,So He'll Also Be Able To Answer This Question...)
Last edited at 2016/01/16 05:09:15 by Golden Freddy
Please log in to rate this scene
edit
YOU FORGOT TO GLUE STUFF TO THE FREAKING BACKGROUND!!!!!!!!!!!!!!!!!
Hey, if you want, you can use my movement script for your shape, as long as you clearly credit that you got it from me. Look at my The Factory part 2 scene, it has a fitting script in the shape. Just copy it, turn it into a circle, and then redesign it to your liking.
Also: Don't use restitution for jump pads, but thyme code. Code the spike so that it kills you, and most of all

Glue da scene to da background:lol:
You can do this if in some places you can't jump:

(e)=>{Jump ? {} : {Jump Script}}
and for the movement script you can do
onCollide = (e)=>{CanJump = 1}
PostStep = (e)=>{KeyIsDown "up" ? {CanJump == 1 ? {vel = [(Whatever velocity up is)];CanJump = 0} :{}} : {}}
@FRA32

I Already Knew About The "Let The Spike Kill You" Thing,But Thanks For Telling Me!:)
Gaming In A Nutshell...;)
@dr creat ivity

Where Do I Put "(e)=>{Jump ? {} : {Jump Script}}"?
@Golden Freddy

in PostStep
@dr creat ivy

It's Not Working...
I did something wrong, sorry, put it in onKey and replace {keyIsDown "up"} to {keyIsDown("up")}
Great Senpai FRA is here to bless you with thyme:

to make an proper jump code, add a _jump variable to the shape using the empty field in the top right of the script menu( _jump = false). Then add a _jump = true statement to the onCollide script field. To make it react to jumping, add the keys.isDown("up") ? {} : {} statement to PostStep. In the first bracket, write a jump code of your liking inside, for example vel = vel + [2,0]
Then hook it with your movement script(dont use stock key movement), which can be done using keys.isDown("left/right/down") ? {} : {} and then writing the influence to the shape in the first bracket again(pick one of the 3 words, remember to handle everything that is neccessary, so "down" is not needet in usual cases). After that, check it out. If you need some high-end-example of high-end-movement script that has been perfected to the maximum, check out my "The Factory(game) part 5" scene and look in the oncollide and poststep box of its script menu. The code in there is my ownage, and also only fitting to the scene itself, but it can give you inspiration(what it contains: all-gravity-floor collision detection, tripple jump ability, jumping in all gravity directions, movement across all gravity directions etc.)
what??