Post new topic    
King Slime
Send private message
Minigame Help 
 PostTue Nov 01, 2011 10:39 pm
Send private message Reply with quote
Alright, I have a scripting question.

What kind of a script would I need to create a minigame, where, a hero is on a raft floating down a river, and must avoid obstacles while constantly moving forward, and if he hits any rocks or land, he'll be presented the option to try again or give up?

Thanks in advance. And yes, this is for my game, Forsaken. Grin
 
 PostTue Nov 01, 2011 10:54 pm
Send private message Reply with quote
You could do this elegantly with slices, but it'd be a big script.

Basically, use the map as a backdrop, where the tiles animate to look like they're moving. Then (now, I haven't scripted for a while, but...), attach the raft slice to the hero sprite, and make it appear beneath.

Then spawn NPCs or slices (if slices, don't forget to destroy them afterwards), and have them move down the screen.

Simple enough. In concept, anyways.
King Slime
Send private message
 
 PostTue Nov 01, 2011 11:24 pm
Send private message Reply with quote
...Alright, sounds cool.

Sadly, I already have a map drawn up for the minigame...
Liquid Metal King Slime
Send private message
 
 PostWed Nov 02, 2011 3:21 pm
Send private message Reply with quote
You could make a big map of the river, and write a script that forces the hero to walk south constantly, and checks keypresses for movement from left to right. You could use "A" tiles on the passability screen to mark the obstacles that you want to avoid, and the script could use the readpassblock command to detect when you have collided with one of them.

I don't think slices would make any part of this script easier (unless you were hoping to have obstacles larger than 20x20)
Display posts from previous: