How Do You Make Solid Platforms With Gravity Script On?

id: 750530

category: Help with Scripts

posts: 7

ramenecho ramenecho loading

EpicJ101 wrote:

.
A single period does not help, what is your issue here. You have to actually make a message to get help. If you have a problem and you dont know what to do, just walking up to somebody and staring into their soul silently will not get them to help you
BigNate469 BigNate469 loading
Please describe your issue. There are many different ways to program anything, you're going to have to be more specific than just what you typed in the title. What are you trying to do? Evaluate if it is really necessary to your project, and if it isn't, don't make it. Often the solution to a simple problem is simple, so see if you can figure it out first, and if you are still stuck after all that, post something here. Keep in mind that the more information you give us helps.
EpicJ101 EpicJ101 loading
I Was Asking How Do You Make Platforms Solid (So Your Character Don't Sink)
BigNate469 BigNate469 loading

EpicJ101 wrote:

I Was Asking How Do You Make Platforms Solid (So Your Character Don't Sink)
When you hit a platform, first turn off the gravity script, then back out of the platform (by using something like:
define get out of platform
repeat until <not <touching [platform v] ?>>
change y by (1)
end
make sure that the custom block is set to run without screen refresh).
EpicJ101 EpicJ101 loading

BigNate469 wrote:

EpicJ101 wrote:

I Was Asking How Do You Make Platforms Solid (So Your Character Don't Sink)
When you hit a platform, first turn off the gravity script, then back out of the platform (by using something like:
define get out of platform
repeat until <not <touching [platform v] ?>>
change y by (1)
end
make sure that the custom block is set to run without screen refresh).
How Do You Do It With Gravity?
BigNate469 BigNate469 loading

EpicJ101 wrote:

How Do You Do It With Gravity?
Like I said, turn off the gravity script until you are no longer on the platform. Something like:
if <touching [platform v] ?> then
set [touching the platform v] to [true]
get out of platform
end
if <(touching the platform) = [false]> then
gravity script
end
(Use my definition for the get out of platform block from above, insert your gravity script where it says “gravity script”)