如何制作Flash游戏的游戏教程?
如何制作游戏教程如《farmville》游戏教程来教用户玩游戏。我最近参与了通过actionscript 3为其用户制作此类游戏教程,有人可以给我指导吗?任何帮助表示赞赏〜
how to make a game tutorial as farmville game tutorial to teach the user to play the game. i have recently involve in make that kind of game tutorial for its user by actionscript 3, can anyone give me a guide to do it? any help is appreciated~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现此目的的常见方法类似于许多游戏采用的“成就系统”,它利用类似于观察者设计模式的系统。
您将设置一个全局可访问的接收器对象,其中包含接收某种数据包的函数。
然后,每个影响所显示的教程信息的函数都会向该接收者对象发送消息,并告诉它已执行的操作。
举例来说,您有一个消息框告诉玩家“砍倒 10 棵树”。
您可以拥有一个具有类似 TutorialMessage(var Action:String, var Parameter:object):void 之类的函数的 Receiver 对象。
然后, 函数将包含对接收者对象的消息传递函数
Receiver.TutorialMessage("TreeChoppedDown", 1)
的调用(即砍倒 1 棵树)。然后,接收器本质上会运行一个巨大的 switch case 来确定操作的性质,并根据您的逻辑解释要执行的操作。在本例中,它将把 Parameter 的值添加到某个计数器变量中,当它达到 10 时,将显示下一条教程消息。
A common way to do this is similar to the "achievements system" many games employ, which utilises the a system similar to the Observer design pattern.
You'd set up a globally-accesible receiver object, with a function to receive a data packet of some sort.
Then, every function that should effect the tutorial info being shown would message this receiver object, and tell it of it's performed action.
So, say for instance, that you have a message box up to tell the player to "Chop down 10 trees".
You could then have a Receiver object with a function like
TutorialMessage(var Action:String, var Parameter:object):void
When they perform the "Chop down tree" action, then end of the chopDownTree() function would contain a call to the receiver object's messaging function
Receiver.TutorialMessage("TreeChoppedDown", 1)
(ie, Chopped down 1 tree).That receiver would then, essentially, run a massive switch case to determine the nature of the action, and interpret would to do based on your logic. In this case, it would add the value of Parameter to some counter variable, and when it reached 10, would display the next tutorial message.