Discuss Scratch

VotedSilver
Scratcher
9 posts

RPG game

My repeat block is being weird, when i use it, for some random reason it glitches out (like deletes my sprite) but when i just repeat the code normally like duplicate it, it works just fine. for reference check this link

https://www.youtube.com/watch?v=nvB9chNNl2s&t=765s

Pls helpp i have a bet to complete this game asap.
Jlerpy
Scratcher
1000+ posts

RPG game

Share your project?
mean_ice_cream
Scratcher
56 posts

RPG game

can I see the project?
VotedSilver
Scratcher
9 posts

RPG game

@Jlerpy, this is the project: https://scratch.mit.edu/projects/919850758/

The code mentioned above is in the “TileSprite” sprite
VotedSilver
Scratcher
9 posts

RPG game

Jlerpy wrote:

Share your project?

@Jlerpy, this is the project: https://scratch.mit.edu/projects/919850758/

The code mentioned above is in the “TileSprite” sprite
Jlerpy
Scratcher
1000+ posts

RPG game

I can't see the problem. There's a little guy and you can roam around quite happily. Tiles seem to load in fine. What's the trouble?
VotedSilver
Scratcher
9 posts

RPG game

wait im sorry need to modify code so you can see it
VotedSilver
Scratcher
9 posts

RPG game

check now, when you press the 0 key
VotedSilver
Scratcher
9 posts

RPG game

could

Jlerpy wrote:

I can't see the problem. There's a little guy and you can roam around quite happily. Tiles seem to load in fine. What's the trouble?
you check the code now? b4 i made it so that only i could access the editor program
Jlerpy
Scratcher
1000+ posts

RPG game

Oh, I see. Yeah, this is beyond my knowledge, I'm afraid.
VotedSilver
Scratcher
9 posts

RPG game

Jlerpy wrote:

Oh, I see. Yeah, this is beyond my knowledge, I'm afraid.
oof
-cloudcoding-
Scratcher
1000+ posts

RPG game

okay I see the problem, when you press 0 this script activates and the render script gets blocked by this script so if you don't want that to happen remove the if in the second script
deck26
Scratcher
1000+ posts

RPG game

Why does CAMX change when you enter Edit mode? (It happens because of the value of tmp in Move Camera but I understand why it should be doing so.)

If you take out the Paint - Palette custom block call the basic editing still works - you can select blocks and duplicate them in different places. So the Paint - Palette code is probably where to look.

deck26
Scratcher
1000+ posts

RPG game

OK, found the rreason for the tmp variable so ignore that.

So I looked at the Paint - Palette block and got it to display the black area OK and a single tile but not multiple tiles. I checked that the ‘'no screen refresh’ option was selected and it isn't.

Does that fix the problem?

Powered by DjangoBB