0% found this document useful (0 votes)
5 views7 pages

pdf24 Merged

The document outlines a programming script for a game, detailing various functions related to game mechanics such as particle effects, camera controls, and player interactions. It includes definitions for actions like showing/hiding elements, moving objects based on player input, and managing game states. The script also incorporates cloning and editor functionalities to facilitate gameplay and design adjustments.

Uploaded by

magdisobihi1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views7 pages

pdf24 Merged

The document outlines a programming script for a game, detailing various functions related to game mechanics such as particle effects, camera controls, and player interactions. It includes definitions for actions like showing/hiding elements, moving objects based on player input, and managing game states. The script also incorporates cloning and editor functionalities to facilitate gameplay and design adjustments.

Uploaded by

magdisobihi1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

when I receive win

show

go to front layer

go to x: 0 y: 25

set size to 0 %

repeat 6

change size by 120 - size / 3

repeat 2

change size by 100 - size / 5

boom

forever

add PLAYER X + pick random 320 to -320

add 0 - Camera Y + pick random 180 to

add 90 to #partical

add 4 to #partical

repeat 2

add PLAYER X + pick random 320 to -320

add 0 - Camera Y + pick random 180 to

add 90 to #partical

add 5 to #partical
when I start as a clone

show

forever

Go screen

if abs of x position > 180 then

set ghost effect to abs of x position - 180 / 60 * 100

define Go screen

switch costume to none

set size to 10000000000000 %

switch costume to Full

go to x: Camera X y: Camera Y

point in direction Camera Rotate + 90

move item x * Zoom steps

turn 90 degrees

move item y * Zoom steps

point in direction Camera Rotate + item rotate

if Zoom * item size > 99 then

switch costume to none

else

switch costume to Full

set size to Zoom * item size %

switch costume to costume

define clone x) y) dir) size) cos)

set item x to x

set item y to y

set item size to size

set item rotate to dir

set costume to cos

create clone of myself

define setup

set count to 0

repeat length of X pos

change count by 1

clone item count) of X pos v]) (item (count) of [Y pos v]) (item (count) of [dir v]) [100] (item (count) of [cos

when I receive start game

erase all

hide

when I receive editor

set *bounce power to 0

show

forever

editor stamp

switch costume to selecting

set x to round mouse x / Zoom * 40 * Zoom * 40

set y to round mouse y / Zoom * 40 * Zoom * 40

point in direction dir

if item selecting of BLOCK TYPE = 5 or item selecting of BLOCK TY

if costume name contains rev ? then

say with reverse

else

say without reverse

else

say

define editor stamp

erase all

set ghost effect to 50

if GAME? = 0 then

set count to 0

repeat length of Player X

change count by 1

player stamp item count) of Player X v]) (item (count) of [Player Y v]) [0] [100] [45]::custom

clear graphic effects

set count to 0

repeat length of X pos

change count by 1

stamp item count) of X pos v]) (item (count) of [Y pos v]) (item (count) of [dir v]) [100] (item (count) of [cos

define stamp x) y) dir) size) cos)

if not GAME? = 1 and item cos of BLOCK TYPE = 0 then

set item x to x

set item y to y

set item size to size

set item rotate to dir

set costume to cos

if GAME? = 0 or PLAYER X - 400 / Zoom < x and PLAY

Go screen

say

stamp

if x + 500 > ENDING X then

set ENDING X to x + 500

when I receive editor

set dir to 90

forever

if key q pressed? then

change dir by -90

wait until not key q pressed?

if key e pressed? then

change dir by 90

wait until not key e pressed?

if mouse down? then

check

if selecting = 3 then

delete detect of X pos

delete detect of Y pos

delete detect of cos

delete detect of dir

else

if detect = 0 then

if not -70 > y position - Camera Y then

if not selecting = 53 and cos contains 53 ? then

add x position - Camera X to X pos

add y position - Camera Y to Y pos

add dir to dir

add selecting to cos

if key 1 pressed? then

lol 1]::custom

wait until not key 1 pressed?

if key 2 pressed? then

lol 2]::custom

wait until not key 2 pressed?

if key x pressed? then

lol x]::custom

wait until not key x pressed?

if key 3 pressed? then

lol 3]::custom

wait until not key 3 pressed?

if key 0 pressed? then

lol 0]::custom

wait until not key 0 pressed?


define Go screen

switch costume to none

set size to 10000000000000 %

switch costume to Full

go to x: Camera X y: Camera Y

point in direction Camera Rotate

move item x * Zoom steps

turn 90 degrees

move item y * Zoom steps

point in direction Camera Rotate

if Zoom * item size >

switch costume to none

else

switch costume to Full

set size to Zoom * item size

switch costume to costume1

when clicked

show

go to front layer

set item y to -336

set item size to 300

set item rotate to 90


define Go screen

switch costume to none

set size to 10000000000000 %

switch costume to Full

go to x: Camera X y: Camera Y

point in direction Camera Rotate + 90

move item x * Zoom steps

turn 90 degrees

move item y * Zoom steps

point in direction Camera Rotate + item rotate

if Zoom * item size > 99 then

switch costume to none

else

switch costume to Full

set size to Zoom * item size %

switch costume to costume

when I start as a clone

show

forever

Go screen

define load partical

set count to 1

repeat length of #partical / 4

set item x to item count of #partical

set item y to item count + 1 of #partical

set item rotate to item count + 2 of #partical

set costume to item count + 3 of #partical

set item size to 100

create clone of myself

change count by 4

delete all of #partical

when I receive start game

forever

load partical

when I start as a clone

go to back layer

if costume = 17 then

repeat 20

change ghost effect by 5

delete this clone

if costume = 4 or costume > 6 and 12 > costume or costume

repeat 10

change ghost effect by 10

change item size by 20

delete this clone

if costume = 21 or costume = 5 then

set x to pick random -10 to 10

set y to pick random -4 to 4

repeat 10
when clicked

create clone of myself

set clone? to 0

set volume to 100 %

hide

wait 0 seconds

if GAME? = 1 then

if cos contains 53 ? then

forever

play sound StayInsideMe until done

when I receive start game

if clone? = 0 then

if not cos contains 53 ? t

play sound MDK - Geometry Dash (Geometry

when I receive ded

if clone? = 0 then

if not cos contains 53 ? t

stop other scripts in sprite

when I receive start game

if clone? = 0 then

go to front layer

switch costume to costume1

point in direction 90

go to x: 0 y: 0

set size to 100 %

set ghost effect to 100

set *ghost to 100

wait 0.1 seconds

if not key space pressed? th

forever

wait until not *MOTION = 1

show

repeat until *MOTION = 1

change *ghost by 30 - *ghos

set ghost effect to *ghost

repeat until *ghost > 99.99

change *ghost by 100 - *gho

set ghost effect to *ghost

hide

when I start as a clone


when clicked

if key space pressed? then

set GAME? to 0

show variable Camera Y

show variable Camera X

broadcast editor

switch backdrop to backdrop2

else

set GAME? to 1

if is compiled? then

switch backdrop to backdrop4

else

switch backdrop to backdrop1

broadcast start game

when I receive start game

hide variable Camera X

hide variable Camera Y

set volume to 100 %

set SPEED to 11

set go cam rotate to 0

set Camera Rotate to 0

set Camera X to -150

set Camera Y to 0

set Zoom to 1

set go y screen to 0

set ENDING X to 500

set go zoom to 1

set *MOTION to 1

when I receive editor

set Camera Rotate to 0

set Camera X to EDITOR CAM X

set Camera Y to EDITOR CAM Y

set Zoom to 1

forever

if key w pressed? or key up arrow pressed? then

change Camera Y by -40

if key a pressed? or key left arrow pressed? then

change Camera X by 40

if key s pressed? or key down arrow pressed? then


define Go screen

switch costume to none

set size to 10000000000000 %

switch costume to Full

go to x: Camera X y: Camera Y

point in direction Camera Rotate + 90

move item x * Zoom steps

turn 90 degrees

move item y * Zoom steps

point in direction Camera Rotate + item rotate

if Zoom * item size > 99 then

switch costume to none

else

switch costume to Full

set size to Zoom * item size %

switch costume to costume

define gravity

gameplay

set touch? to 0

if GRAVITY = 1 then

if not -20 > y speed then

change y speed by -2.6 * *MOTION

else

if not y speed > 20 then

change y speed by 2.6 * *MOTION

change item y by y speed * *MOTION

if MODE = 1 then

change item rotate by DIRECTION * GRAVITY * 8.5 * *MOTION

hitbox

if -69 > item y then

set touch? to 1

set y speed to 0

set item y to -70

set item rotate to round item rotate / 90 * 90

if not y speed > 0 then

if not stand = n then

set touch? to 1

set y speed to 0

set item y to stand - 1 * GRAVITY

set item rotate to round item rotate / 90 * 90

define hitbox

set touch orb to 0

set stand to n

set count to 0

repeat length of X pos

change count by 1

if item count of X pos - 100 < item x and item count of X pos + 1

if item item count of cos of BLOCK TYPE = 1 then

if item count of X pos - 40 < item x and item count of X pos +

if item count of Y pos - 40 < item y and item count of Y pos

if GRAVITY = 1 then

hitbox 2 item y) \> item count) of Y pos v]) + (y speed))> [40] <((item (count) of [Y pos v]) - (y spe

else

hitbox 2 item y) \ item count) of Y pos v]) - ((y speed) + (2)))> [-40] <((item (count) of [Y pos v]

if item item count of cos of BLOCK TYPE = 2 then

if item count of Y pos - 30 < item y and item count of Y pos +

if item count of X pos - 20 < item x and item count of X pos

broadcast ded

if item item count of cos of BLOCK TYPE = 3 then

if item count of Y pos - 80 < item y and item count of Y pos +

if item count of X pos - 80 < item x and item count of X pos

set touch orb to 1

orb

if item item count of cos of BLOCK TYPE = 0 then

if item count of Y pos - 60 < item y and item count of Y pos +

if item count of X pos - 60 < item x and item count of X pos

somethin

if item item count of cos of BLOCK TYPE = 4 or item item count o

if item count of Y pos - 50 < item y and item count of Y pos +

if item count of X pos - 40 < item x and item count of X pos

if item item count of cos of BLOCK TYPE = 4 then

portal

else

speed

if item item count of cos of BLOCK TYPE = 5 then

if item count of Y pos - 20 < item y and item count of Y pos +

if item count of X pos - 20 < item x and item count of X pos

pad

when I receive start game

set last orb click to 0

show

set *DASHING to 0

set press? to 0

set previous mode to 1

set MODE to 1

if cos contains 53 ? then

set *bounce power to 0

set item x to item item # of 53 in cos of X pos

set item y to item item # of 53 in cos of Y pos

else

set item x to 0

set item y to -70

set item size to 100

set item rotate to 90

set y speed to 0

set lock cam to n

set lock cam 2 to n

forever

clear graphic effects

costume

change item x by DIRECTION * SPEED * *MOTION

if lock cam = n then

set go x screen to 0 - item x * Zoom - DIRECTION * 150

else

set go x screen to 0 - lock cam

if lock cam 2 = n then

if item y > 50 then

set go y screen to 0 - item y - 50 * Zoom

else

set go y screen to 0

else

set go y screen to 0 - lock cam 2

if *DASHING = 0 then

if MODE = 6 or MODE = 7 or MODE = 1 then

gravity

if MODE = 2 or MODE = 4 or MODE = 8 then

gravity 2

if MODE = 3 then

gravity 3

if MODE = 5 then

gameplay

hitbox

else

hitbox

if MODE = 1 then

change item rotate by DIRECTION * GRAVITY * 8.5 * *MOTION

else

set item rotate to round item rotate / 90 * 90

add item x to #partical

add item y - pick random -15 to 15 to #partical

add 90 to #partical

add 21 to #partical

set brightness effect to 50

Go screen

if item y > 1000 or -70 > item y then

broadcast ded

if MODE = 4 or MODE = 2 or touch? = 1 then

add item x to #partical

add item y - pick random -15 to 15 to #partical

add 90 to #partical

add 5 to #partical

set PLAYER X to item x

if key z pressed? and cos contains 53 ? then

broadcast ded

if item x + 250 > ENDING X then

set go cam rotate to 0

repeat until item x > ENDING X

change item rotate by DIRECTION * GRAVITY * 8.5 * *MOTION

change item x by ENDING X + 50 - item x / 8

Go screen

start sound endStart_02

hide

set PLAYER X to ENDING X

special effect

repeat 27

change Camera X by pick random -5 to 5

change Camera Y by pick random -5 to 5

wait 0 seconds

broadcast win

stop other scripts in sprite

stop this script

when I receive editor

hide

define gameplay

if MODE = 1 then

if key up arrow pressed? or key space pressed? or mouse down? then

if touch? = 1 then

set y speed to GRAVITY * 25

if MODE = 2 then

if key up arrow pressed? or key space pressed? or mouse down? then

if not abs of y speed > 10 then

change y speed by GRAVITY * 2 * *MOTION

if MODE = 3 then

if key up arrow pressed? or key space pressed? or mouse down? then

if touch? = 1 and touch orb = 0 then

set GRAVITY to GRAVITY * -1

if MODE = 4 then

if press? = 0 then

if key up arrow pressed? or key space pressed? or mouse down? then

set press? to 1

set y speed to GRAVITY * 10

else

if not key up arrow pressed? or key space pressed? or mouse down? the

set press? to 0

if MODE = 5 then

wave thing

if MODE = 6 then

if hold? = 1 and key up arrow pressed? or key space pressed? or m

change y speed by GRAVITY * 5 * *MOTION

if abs of y speed > 20 then

set hold? to 0

else

set hold? to 0

if touch? = 1 then

set hold? to 1

if MODE = 7 then

if hold? = 1 and key up arrow pressed? or key space pressed? or m

Spider

set hold? to 0

else

set hold? to 0

if touch? = 1 and not key up arrow pressed? or key space pressed?

set hold? to 1

if MODE = 8 then

if press? = 0 then

if key up arrow pressed? or key space pressed? or mouse down? then

set press? to 1

set GRAVITY to GRAVITY * -1

set y speed to GRAVITY * 10

add item x to #partical

add item y to #partical

add 90 to #partical

add 4 to #partical

else

if not key up arrow pressed? or key space pressed? or mouse down? the

set press? to 0

when I receive ded

death

hide

start sound explode_11

stop other scripts in sprite

wait 1 seconds

broadcast clear and wait

broadcast start game

define orb

if CLICK = 1 and not count = last orb click then

set last orb click to count

add item count of X pos to #partical

add item count of Y pos to #partical

add 90 to #partical

if item count of cos = 11 then

add 3 to #partical

set y speed to *bounce power * 25 * GRAVITY

if item count of cos = 12 then

add 3 to #partical

set y speed to *bounce power * 25 * GRAVITY

set DIRECTION to DIRECTION * -1

if item count of cos = 13 then

add 7 to #partical

set GRAVITY to GRAVITY * -1

set y speed to 0

if item count of cos = 14 then

add 7 to #partical

set GRAVITY to GRAVITY * -1

set DIRECTION to DIRECTION * -1

set y speed to 0

if item count of cos = 15 then

add 8 to #partical

set y speed to 12 * GRAVITY

if item count of cos = 16 then

add 8 to #partical

set y speed to 12 * GRAVITY

set DIRECTION to DIRECTION * -1

if item count of cos = 17 then

add 9 to #partical

set y speed to *bounce power * 32 * GRAVITY

if item count of cos = 18 then

add 9 to #partical

set y speed to *bounce power * 32 * GRAVITY

set DIRECTION to DIRECTION * -1

if item count of cos = 19 then

add 10 to #partical

set y speed to GRAVITY * *bounce power * -25

set GRAVITY to GRAVITY * -1

if item count of cos = 20 then

add 10 to #partical

set y speed to GRAVITY * *bounce power * -25

set GRAVITY to GRAVITY * -1

set DIRECTION to DIRECTION * -1

if item count of cos = 21 then

add 11 to #partical

set y speed to GRAVITY * -40

if item count of cos = 22 then

add 11 to #partical

set y speed to GRAVITY * -40

set DIRECTION to DIRECTION * -1

if item count of cos = 59 then

add 7 to #partical

set y speed to 0

set *DASHING to 1

if item count of cos = 60 then

add 7 to #partical

set y speed to 0

set *DASHING to 1

set DIRECTION to DIRECTION * -1

if item count of cos = 61 then

set GRAVITY to GRAVITY * -1

add 7 to #partical

set y speed to 0

set *DASHING to 1

if item count of cos = 62 then

set GRAVITY to GRAVITY * -1

add 8 to #partical

set y speed to 0

set *DASHING to 1

set DIRECTION to DIRECTION * -1

when I receive start game

set CLICK to 0

forever

if key up arrow pressed? or key space pressed? or mouse down? then

set CLICK to 1

wait 0 seconds

set CLICK to 0

wait until not key up arrow pressed? or key space pressed? or mouse down?

define hitbox 2 uh> lmao) uh2> lmao 2)

if MODE = 5 then

broadcast ded

if uh then

set stand to item count of Y pos + lmao

if not MODE = 3 then

set item rotate to round item rotate / 90 * 90

set touch? to 1

set y speed to -2

set item y to stand + -2

else

if uh2 and MODE = 2 or MODE = 8 or MODE = 4 then

set stand to item count of Y pos + lmao 2

if not MODE = 3 then

set item rotate to round item rotate / 90 * 90

set touch? to 1

set y speed to 0

set item y to stand + -2

else

broadcast ded

define death

repeat 15

add item x to #partical

add item y to #partical

add 90 to #partical

add 5 to #partical

add item x to #partical

add item y to #partical

add 90 to #partical

add 4 to #partical

when I receive start game

repeat 3

add item x to #partical

add item y to #partical

add 90 to #partical

add 6 to #partical

wait 0.05 seconds

define gravity 2

gameplay

set touch? to 0

if GRAVITY = 1 then

change y speed by -1 * *MOTION

if -10 > y speed then

set y speed to -10

else

change y speed by 1 * *MOTION

if y speed > 10 then

set y speed to 10

change item y by y speed * *MOTION

if DIRECTION = 1 then

set item rotate to y speed * -2 + 90

else

set item rotate to y speed * 2 + 90 + 180

hitbox

if -69 > item y then

set touch? to 1

set y speed to 0

set item y to -70

set item rotate to round item rotate / 90 * 90

if not y speed > 0 then

if not stand = n then

set touch? to 1

set y speed to 0

set item y to stand - 1 * GRAVITY

set item rotate to round item rotate / 90 * 90

define somethin

if item count of cos = 23 then

set go zoom to 1

if item count of cos = 24 then

set go zoom to 0.75

if item count of cos = 25 then

set go zoom to 0.5

if item count of cos = 26 then

set go zoom to 1.5

if item count of cos = 27 then

if DIRECTION = 1 then

set lock cam to 0 - go x screen + 10

else

set lock cam to 0 - go x screen + -10

if item count of cos = 28 then

set lock cam to n

set lock cam 2 to n

if item count of cos = 55 then

set lock cam 2 to 0 - go y screen

if item count of cos = 56 then

set *MOTION to 0.5

if item count of cos = 57 then

set *MOTION to 1

if item count of cos = 63 then

set go cam rotate to 0

if item count of cos = 64 then

set go cam rotate to 5

if item count of cos = 65 then

set go cam rotate to 10

if item count of cos = 66 then

set *DASHING to 0

define costume

if MODE = 1 then

set *bounce power to 1

set costume to 3

if MODE = 2 then

set *bounce power to 0.5

if GRAVITY * DIRECTION = 1 then

set costume to 4

else

set costume to 5

if MODE = 3 then

set *bounce power to 1

set costume to 6

if MODE = 4 then

set *bounce power to 0.5

if GRAVITY * DIRECTION = 1 then

set costume to 7

else

set costume to 8

if MODE = 5 then

set *bounce power to 0

set costume to 9

add item x to #partical

add item y to #partical

add item rotate to #partical

add 17 to #partical

if MODE = 6 then

set *bounce power to 1

if DIRECTION * GRAVITY = 1 then

set item rotate to DIRECTION * 90

if abs of y speed > 1 then

set costume to 11

else

set costume to 10

else

set item rotate to DIRECTION * 90

if abs of y speed > 1 then

set costume to 13

else

set costume to 12

if MODE = 7 then

set *bounce power to 1

if DIRECTION * GRAVITY = 1 then

set item rotate to DIRECTION * 90

if touch? = 0 then

set costume to 15

else

set costume to 14

else

set item rotate to DIRECTION * 90

if touch? = 0 then

set costume to 17

else

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy