Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Entity  (Read 2513 times)

0 Members and 1 Guest are viewing this topic.

Michal

  • Guest
Entity
« on: August 20, 2003, 09:05:04 AM »

Cau mam entitu.Kterou jsem vlozil do sceny ve scene editu pomoci add sprite entity,a v adresari entities mam tu entitu ulozenou a v ni mam script

on "LeftClick"
{
bezdomovec.Talk("Ahoj");
}
 Error@line 5: Method is called for 'bezdomovec' which is not defined
09:50: Compiling script 'entities\bezdomovec\bezdomovec.script'...
jmeno entity je bezdomovec,ale hlasi mi to porad chybu   nevim co s tim.Proste chci ze kdyz hrac klikne levym tlacitkem na tu entitu entita rekne ahoj.Prosim o pomoct.Diky cau:)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re:Entity
« Reply #1 on: August 20, 2003, 09:10:45 AM »

Musis tu entitu nejdriv "deklarovat", zpristupnit skriptu. Tj. pred to dej neco jako:

var bezdomovec = Scene.GetNode("bezdomovec");
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Michal

  • Guest
Re:Entity
« Reply #2 on: August 20, 2003, 01:38:00 PM »

Cau Mnemonicu.DIky za radu.Jaktoze se neozyvas na icq?:)Doufam,ze se neschovavas:))
Logged
 

Page created in 0.228 seconds with 22 queries.