Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: SetPoint problem  (Read 2424 times)

0 Members and 1 Guest are viewing this topic.

Tykar

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile
SetPoint problem
« on: November 15, 2012, 11:20:44 PM »

Hi ! First of all excuse me for my poor english !

Here's my problem. I want to move a region with the method SetPoint but all I get in return is a "Call to undefined method SetPoint Ignored".

My script:


#include "scripts\base.inc"


on "LeftClick"
{

var region1=Scene.GetNode("region1");

region1.SetPoint(0,258,378);
region1.SetPoint(1,262,291);
region1.SetPoint(2,371,290);
region1.SetPoint(3,372,376)
}


What did I miss ?  :-\
Logged

keybone

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 112
    • View Profile
    • Lucine
Re: SetPoint problem
« Reply #1 on: November 21, 2012, 01:15:36 PM »

hi,
try with
region1.Movable =true;

cheer
Logged
Lucine Company http://www.lucine.it/
Tales of Lucine: The Realm of Hobdark http://www.lucine.it/TalesOfLucine

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: SetPoint problem
« Reply #2 on: November 23, 2012, 09:00:28 AM »

What kind of node is "region1". Is it really a region (blue) or a region entity (green)?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.037 seconds with 24 queries.