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

#1 2012-10-22 07:06:47

JarredKarp
New Scratcher
Registered: 2012-10-22
Posts: 1

Making a game.

hey guys .

im making a game for an IT project at school and im having a few problems with my stage changes. at ther moment i have a sprite as a character and a sprite on the edge of the screen. now what im trying is kind of a pokemon idea. when u reach a certain point of the stage , the stage changes and the sprite moves back to thet start point so it looks as if you have moved. so the coding i am using is "when spirte 1 touches sprite 7 broadcast change." then on the stage i have when " recieve Change is recieved change backround to backround 3 and broadcast move' then back i sprite one i then have " when move is recieved sprite one goes to coordinates "so and so"."

if any body can tell me how to fix this problem i will be greatly happy  smile  thank you very much .

sincerely
Jarred
happy Coding.

Offline

 

#2 2012-10-22 11:47:04

Zarule6
New Scratcher
Registered: 2012-08-02
Posts: 36

Re: Making a game.

Well I don't know what your problem is exactly,but here's an script you can use  tongue  as an example



Sprite: Stage

 
  
    when I receive [Change_map_01 v]
        switch to background [background3 v]
    end     

when I receive [Change_Map v]
        switch to background [background2 v]
    end     

when green flag clicked
        switch to background [background1 v]
    end
--------
Sprite: Sprite1
 
    when I receive [Change_Map v]
        go to x:(-218) y:(-21)
        forever  
            if (touching[Sprite7 v]?) 
                broadcast [Change_map_01 v]
                stop script
    end     

when green flag clicked
        go to x: (-218) y:(-21)
        forever  
            if (touching[Sprite7 v]?) 
                broadcast [Change_Map v]
                stop script
    end
Sprite 7
--------
 

    when green flag clicked
        go to x:(235) y:(0)
    
also here is an example of how it works,which I myself made,it's extensive in the type of game you want in the beginning building on the if(touching[s v]) statements  smile
Example

Hope I helped !  big_smile

Offline

 

Board footer