Please login or register.

Login with username, password and session length
Advanced search  

News:

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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - sunrosea

Pages: [1]
1
Technical forum / DeleteEntity error, even though code works
« on: September 09, 2012, 11:15:54 AM »
Hi!

I wanted to have an animated sprite in the beginning of the game, without the actor, because it is supposed to be the actor lying down on the ground.
So I decided to load the actor after the sprite have done its job, and so this is what I came up with:
game.script
Code: [Select]
// which scene to load?
Game.ChangeScene(Game.StartupScene);
//create animated sprite on scene
var wakeupanim= Scene.CreateEntity("wakeupanimation");
wakeupanim.SetSprite("Animations\wakeupscene1.sprite");
wakeupanim.X=280;
wakeupanim.Y=521;
//Let animated sprite animate before fade out
Sleep(5000);
//Delete sprite from scene
wakeupanim.DeleteEntity("wakeupanimation");
Scene.FadeOut(100);
Game.ChangeScene(Game.StartupScene);
//Load main actor
actor = Game.LoadActor("actors\Naomi\Naomi.actor");
Game.MainObject = actor;

This works totally fine. But I still get an error saying:
 "12:08:26:  Runtime error. Script 'scripts\game.script', line 39
12:08:26:    Call to undefined method 'DeleteEntity'. Ignored."

It does delete the sprite anyways, because its not there once the scene is loaded again with the actor.
But I'm just thinking it might ruin other things with the game further on, is there something i need to fix so that i do not get the error?


2
Technical forum / About selling game
« on: September 08, 2012, 10:19:38 AM »
Hi!

As far as I understand, its okay to sell the game without paying anything (although I will donate in the future).
But is there anything you have to think about when you go about this?
like:
1. Do I have to credit any specific things from the engine or creator of it?
2. Is there any integrated parts to the engine that is not made by the engine creator, that has to be paid for?

Anything more to think of?

3
Technical forum / Have subtitles show in response box
« on: September 07, 2012, 12:50:19 PM »
Hey again, another issue this time :)

Well, I would like to have the subtitles to my character to be in the response box. Like I want all subtitles and talking stuff to be displayed at the same area
at the bottom of the screen with a plain colored background.

How would I implement this?

4
Technical forum / left click pick up item
« on: September 06, 2012, 01:50:31 PM »
Hi!

I've tried to figure out how to make it so when you left click an item, the character will pick it up, instead of right click
and then choose to pick it up.
Basically, I'd like my character to pick up item when left click, and "look at" item when right click without the "menu" popping up. The right click will therefore make her only speak about the item.
Could someone tell me which files I should edit and what i should write to make that work?

Also Im having problems with making the object(an apple) appear in the inventory with the right-click menu thing, even tho i followed the steps in the manual.
When I choose to pick it up, it doesn't disappear from its position nor appearing in the inventory.
here's what i got so far:
the apple.script
Code: [Select]
#include "scripts\base.inc"


////////////////////////////////////////////////////////////////////////////////
on "LookAt"
{
  actor.Talk("Looks like an apple....");
}

////////////////////////////////////////////////////////////////////////////////
on "Take"
{
  actor.Talk("It could be useful, I might get hungry.");
  Game.TakeItem("apple");
 
  Game.SelectedItem = "apple";
}


The items.item file:
Code: [Select]
ITEM
{
   CURSOR_COMBINED = TRUE
   CAPTION = "WME User's Guide"
   NAME = "book"
   IMAGE = "items\book.bmp"
   CURSOR = "items\book.bmp"
   CURSOR_HOVER = "items\book_h.bmp"
   SCRIPT = "items\book.script"
}
ITEM
{
   CURSOR_COMBINED = TRUE
   CAPTION = "apple"
   NAME = "apple"
   IMAGE = "items\apple.png"
   CURSOR = "items\apple.png"
   CURSOR_HOVER = "items\apple.png"
   SCRIPT = "items\apple.script"
}

 i also added the apple.script file to the sceneEdit, by clicking on the apple entity and then adding the script file.
Also added "apple" to the "item" text box and saved it.

have I missed something?

5
Technical forum / Bad quality image in fullscreen
« on: August 28, 2012, 01:30:56 PM »
Hi!
I've got a problem with the background image quality, and the character quality when its in full screen. In windowed mode it looks fantastic.
I'm guessing that even tho I have set a size of the game (which is the exact same as of the background), it still resizes it a bit and that's what causing it to get a bit blurry like?
Is there a way that you can run it in full screen, so that there are black edges around the scene, but without the engine resizing the game?


6
Technical forum / Curved scale line?
« on: August 26, 2012, 12:31:12 PM »
Hi!
I installed a couple of days ago the WME, and I love it so far :)
I have a question regarding the green horizontal scale lines which I haven't found an answer to yet here in the forums.
You see, the ground of my background is not straight horizontally, its going upwards a bit at the left side of the screen, like a hill kind of.
The part where my character is walking up a bit on the hill, is a bit further away, and therefore I want her to be scaled to 80% of her size.
So i put one of the scaling lines there and changed it to 80%, but when shes walking down the hill for example, the line "registers" it like shes scaling bigger because shes going further away from the line, even tho its at the same distance, just that its going downwards. I hope you catch my drift.
Is there a way to curve the horizontal scaling line so that it follows the hill or is there another setting i can do to make her stay at 80% walking down and up the hill?
Or maybe you somehow can add another horizontal line, i actually would need three of them.

Pages: [1]

Page created in 0.04 seconds with 22 queries.