This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-06-26 15:48:15

NightSky3574
New Scratcher
Registered: 2011-06-26
Posts: 3

I am new on scratch and I want some help with making a platform game

If I want 2 enemies on the first level then >2enemies on the second level how do I do that.Also I want a restart level button not restart game button and can someone see if there is any bugs on my demo version of the game.

The game's name is Jack's amazing adventure.

Offline

 

#2 2011-06-26 17:02:57

frizzlepuss893
Scratcher
Registered: 2011-06-10
Posts: 100+

Re: I am new on scratch and I want some help with making a platform game

it could maybe have a better gravity engine, and some xvelocity to. check out my interactive scratch platform maker for examples of that


"Wait, what?"-Frizzlepuss. Jumpathon 5! play now!
The scratch song! Congratulations scratch! 2 million projects!

Offline

 

#3 2011-06-27 12:14:26

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: I am new on scratch and I want some help with making a platform game

make as many enemies as will be in total in the game.  make them all hide at the beginning and have 2 show in the 1st level.  set others to show after the 1st level is complete.


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#4 2011-06-27 14:54:05

NightSky3574
New Scratcher
Registered: 2011-06-26
Posts: 3

Re: I am new on scratch and I want some help with making a platform game

also can anyone show me a wall script.

Offline

 

#5 2011-06-27 15:13:47

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: I am new on scratch and I want some help with making a platform game

NightSky3574 wrote:

also can anyone show me a wall script.

Walls don’t have scripts except to stay where they are. The player has to do something about hitting the wall. When you hit a wall, what does it do? Does it execute some sort of magic power that makes you stumble backwards or feel pain? No. You stumble backwards and YOU feel pain.

And, I don’t mean to be offensive, but since you’re new, try not to get ahead of yourself when making an advanced project.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#6 2011-06-28 17:42:11

NightSky3574
New Scratcher
Registered: 2011-06-26
Posts: 3

Re: I am new on scratch and I want some help with making a platform game

on a few levels I want boxes that change gravity like instead of going down going left.

Offline

 

#7 2011-06-29 00:57:14

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: I am new on scratch and I want some help with making a platform game

henley wrote:

NightSky3574 wrote:

also can anyone show me a wall script.

Walls don’t have scripts except to stay where they are. The player has to do something about hitting the wall. When you hit a wall, what does it do? Does it execute some sort of magic power that makes you stumble backwards or feel pain? No. You stumble backwards and YOU feel pain.

And, I don’t mean to be offensive, but since you’re new, try not to get ahead of yourself when making an advanced project.

I'm pretty sure he was referring to scripts relating to walls, not necessarily to actually make the walls do something.  tongue  That kind of script can be simple or complex, but the simplest one would be something like this:

Code:

When green flag clicked
Forever
    If <key left arrow pressed>
        change x by -5
        If <touching color wall_color>
            change x by 5

    If <key right arrow pressed>
        change x by 5
        If <touching color wall_color>
            change x by -5

    If <key up arrow pressed>
        change y by 5
        If <touching color wall_color>
            change y by -5

    If <key down arrow pressed>
        change y by -5
        If <touching color wall_color>
            change y by 5

NightSky3574 wrote:

on a few levels I want boxes that change gravity like instead of going down going left.

You might do that by making a variable that tells what direction gravity is going and having it change the direction it's falling based on that variable. I can post a script if you want, but it will depend on how you've implemented gravity already.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer