Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: ?нимированные ?прайты  (Read 3507 times)

0 Members and 1 Guest are viewing this topic.

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
?нимированные ?прайты
« on: August 06, 2012, 09:25:39 AM »

Code: [Select]
global indicator = Scene.GetNode("indicator");
global indicator_sp = indicator.GetSpriteObject();
indicator_sp.Pause();

indicator.script

Code: [Select]
on "LeftClick" {indicator_sp.Play();}
« Last Edit: August 06, 2012, 09:28:39 AM by Krosad »
Logged

s.belov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
« Last Edit: August 06, 2012, 02:05:03 PM by s.belov »
Logged

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Re: ?нимированные ?прайты
« Reply #2 on: August 09, 2012, 09:41:18 AM »

("red" + а)
Logged

s.belov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Re: ?нимированные ?прайты
« Reply #3 on: August 09, 2012, 10:55:14 AM »

« Last Edit: August 09, 2012, 11:03:00 AM by s.belov »
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Logged

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Re: ?нимированные ?прайты
« Reply #5 on: August 09, 2012, 11:42:03 AM »

« Last Edit: August 09, 2012, 11:47:34 AM by Krosad »
Logged

s.belov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Logged

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Re: ?нимированные ?прайты
« Reply #7 on: August 09, 2012, 12:09:11 PM »

Logged

s.belov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: ?нимированные ?прайты
« Reply #9 on: August 09, 2012, 02:54:29 PM »

Code: WME Script
  1. while(true)
  2. {
  3.    for (var a=1; a<=100; a=a+1)
  4.    {
  5.      var redded = Scene.GetNode("red" + а);
  6.      if (redded != null && redded.Y > 300)  Scene.DeleteEntity(redded);
  7.      Sleep(0); // Зде?ь, не?мотря на 0, цикл б?дет на короткое время передавать ?правление игре, и она что-то еще ??пеет ?делать, тогда как без этого ?липа игра ждёт, когда закончит?я цикл. Е?ли объектов много - "тормоза" неизбежны.
  8.    }
  9.    Sleep(500);
  10. }
Logged
 

Page created in 0.208 seconds with 17 queries.