Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » help implementing combat and enemies in RPG game
- pytka
- Scratcher
7 posts
help implementing combat and enemies in RPG game
Hi, everyone.
I'm designing my first Scratch game, an RPG, called Everrun. Right now it's really simple (and boring). But I want to add moving enemies and combat (pick up and use weapons, etc.).
I also want to add a scrolling background (when player sprite reaches edge of screen, load new screen).
Can you guys help me out and give me some suggestions on how to do these things? Also, please feel free to give your own ideas for the game. I'd really appreciate it!
I'm designing my first Scratch game, an RPG, called Everrun. Right now it's really simple (and boring). But I want to add moving enemies and combat (pick up and use weapons, etc.).
I also want to add a scrolling background (when player sprite reaches edge of screen, load new screen).
Can you guys help me out and give me some suggestions on how to do these things? Also, please feel free to give your own ideas for the game. I'd really appreciate it!
- Mactabilis
- Scratcher
81 posts
help implementing combat and enemies in RPG game
You can make the bad guys move by having this block
when green flag clicked
forever
if <(distance to [player]) < [100]> then
point towards [player]
move (3) steps
end
if <touching [player]?> then
change [health] by (-1)
wait (.2) secs
end
end
Cool stuff here. Physics engine wiki here.
when green flag clicked
forever
think [I could go for some pancakes right now...]
end
- Mactabilis
- Scratcher
81 posts
help implementing combat and enemies in RPG game
To make a scroller up and down I would recommend checking out the scratch wiki to make a side to side scroller then change it to be in all directions. You can also check out this project that I found Top Down Iso Template
Cool stuff here. Physics engine wiki here.
when green flag clicked
forever
think [I could go for some pancakes right now...]
end
- pytka
- Scratcher
7 posts
help implementing combat and enemies in RPG game
Thanks a lot @Mactabilis! This helps
- Discussion Forums
- » Help with Scripts
- » help implementing combat and enemies in RPG game