Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Making Prototype  (Read 2917 times)

0 Members and 1 Guest are viewing this topic.

MyShroom

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
    • View Profile
Making Prototype
« on: August 01, 2010, 12:10:25 PM »

I am doing prototype of my first game on WME.
First level is ready. I have a storyboard for the second one but have no time to implement it in write way, so i decided to make 2nd level as an interactive story board:
First we can 1st frame
*LMB*
And we are looking at a 2nd one
*RMB*
Back to 1st frame

Frames - 1280х1024 and i have  20 of them. Kinda snapshots of game with some progress.

How to figure it out?


Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Making Prototype
« Reply #1 on: August 01, 2010, 12:14:08 PM »

Hey!

The arts really look great, love that tyle, reminds me of Samorost, Machinarium and such games :)
Logged

MyShroom

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Making Prototype
« Reply #2 on: August 01, 2010, 12:30:33 PM »

 O0
So how to? ???
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Making Prototype
« Reply #3 on: August 01, 2010, 02:23:02 PM »

1) Create an entity in SceneEdit.
2) Attach a script to the entity.
3) The script will contain something like this (untested):

Code: WME Script
  1.  
  2. var currentScene = 0;
  3. var lastScene = 20;
  4.  
  5. on "LeftClick"
  6. {
  7.   if (currentScene == lastScene) return;
  8.   currentScene = currentScene + 1;
  9.   SetImage();
  10. }
  11.  
  12. on "RightClick"
  13. {
  14.   currentScene = 0;
  15.   SetImage();
  16. }
  17.  
  18.  
  19. function SetImage()
  20. {
  21.   switch (currentScene)
  22.   {
  23.     case 0:
  24.       this.SetSprite("path\first_image.png");
  25.       break;
  26.  
  27.     case 1:
  28.       this.SetSprite("path\second_image.png");
  29.       break;
  30.  
  31.     case 2:
  32.       this.SetSprite("path\third_image.png");
  33.       break;
  34.      
  35.     // ...more images
  36.  
  37.   }
  38. }
  39.  
« Last Edit: August 01, 2010, 02:31:15 PM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

MyShroom

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Making Prototype
« Reply #4 on: August 03, 2010, 10:25:27 AM »

Thanks, works fine  :D
Logged
 

Page created in 0.05 seconds with 21 queries.