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: Which of my ideas would work or won't work with WME - Questions  (Read 7482 times)

0 Members and 1 Guest are viewing this topic.

Arathel

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Which of my ideas would work or won't work with WME - Questions
« on: January 13, 2009, 09:31:08 PM »

Hello :)

So I am working on my first Adventure and of course, WME came right into my mind when I thought about what Engine out there I should use.
But before I go deep into the development process with WME just to find out some of my ideas cannot be realized at the moment, I thought I should ask here first.

1- Parallax Scrolling is possible. Now, if used together with the Sprite Resize Feature, is it possible to have the background not only scrolling but  actually getting bigger and bigger as character is moving farther away from the camera into the background? A character who is getting smaller the more he moves away from the camera into the backtground?
This may sound weird at first, since it'd look very unreal to have the background become even larger as the character as he is moving farther away, a character sprite that decreases in size the nearer he comes to the background, but I still would like to use an effect of that sort for my project.

2.- I read that with WME it's possible intregrate videos into our projects, but I'd like to know if it's possible to simluate a video by working with various animated backgrounds/spots, transparent layers, sound effect scripts, and the other features WME has to offer. Would that be to difficult to script or is it an option to producing a full video sequences?

3.- I read its no problem to switch between "3rd person" and "1st person" perspective in WME. So I take it should be no problem with WME script Engine to have certain scenes to be played in 1st person, while for others the 3rd person perspective would be utilized? Also, I wonder if panning is allowed in a "1st person" view (for large backgrounds).

4.- Parallax layers can be animated by scripting just like the most foreground/background layer, I take it? So there should be no problem to have animated bushes or whatever in every layer, the proper PNG animation picture sequence provided?

Thank you for your time. :)
« Last Edit: January 14, 2009, 10:19:23 AM by Arathel »
Logged
If it\'s dark, it\'s dark.

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Which of my ideas work with WME or don't - Some Questions
« Reply #1 on: January 13, 2009, 10:09:45 PM »

Hey there. First, yes you can "switch" between 3rd person and 1st person. No problem to combine. About your animation stuff: Of course, you can create sprites for everything, but I guess it's more performant to use video files for it, but that is just a guess. You can use the Sprite-editor to create Sprites like bushes etc. for that purpose, or you can simply create a small Theora video, which is not hard.
Logged

Arathel

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Which of my ideas work with WME or don't - Some Questions
« Reply #2 on: January 13, 2009, 10:27:13 PM »

So, theora videos can be used as layers as well? I see. I will look into it.

About my first question, let me rephrase it.
Instead of (just) scrolling I want the background layers to change their size based on how near the character gets to them. Just like the characters becomes smaller and smaller, I want the background layers to increase in size.
Logged
If it\'s dark, it\'s dark.

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Which of my ideas work with WME or don't - Some Questions
« Reply #3 on: January 13, 2009, 10:45:12 PM »

You can scale entities and you can track character's position so it's possible to script such behavior.

And yes, videos can be used everywhere, not just full screen.
Logged
fl*p

Arathel

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Which of my ideas work with WME or don't - Some Questions
« Reply #4 on: January 13, 2009, 11:50:40 PM »

That sounds great. Thanks for your time. :)

After reading this thread: http://forum.dead-code.org/index.php?topic=3379.0 , I have some more questions regarding my video ideas. Judging from this thread, transparency is possible thus the theora video is suited to be used as one of the parallax layers. I checked http://res.dead-code.org but I didn't find an answer to my questions:

Lets say I have a full layer of animated bushes:

What would work at all - Figure 1 or Figure 2?
Is it even possible to have a transparent video?

Oh and Theora requires the res to a mulitply of 16. So I take it 512x128 or 1024x256 would work (line of bushes) and not just squares like 256x256 (1 bush)?
« Last Edit: January 14, 2009, 12:05:47 AM by Arathel »
Logged
If it\'s dark, it\'s dark.

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Which of my ideas would work or don't work with WME - Questions
« Reply #5 on: January 14, 2009, 09:49:39 AM »

I'm not sure I understand the first part of the post so I'll make no attempt to answer it.

As for the others...

Quote
Is it even possible to have a transparent video?
Yes, as you can see in wme docs, PlayTheora() method accepts an alphaimage. That is a simple rgp image with a 8bit alpha channel which wme will use to mask the video.

Quote
Oh and Theora requires the res to a mulitply of 16. So I take it 512x128 or 1024x256 would work (line of bushes) and not just squares like 256x256 (1 bush)?

It doesn't have to be square to work. 512x128 & 1024x256 are still multiply of 16 so they'll work just fine.
« Last Edit: January 14, 2009, 09:54:04 AM by odnorf »
Logged
fl*p

Arathel

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Which of my ideas would work or don't work with WME - Questions
« Reply #6 on: January 14, 2009, 10:40:27 AM »

The first question is the same as the second question but rephrased. So it is indeed possible to have several lines of bushes and trees as animated theora video parallax layers, while preserving/adding their transparency via a png with alpha channel.

I used a picture for better understanding, but I guess it was more confusing than my rephrased question :D

Thanks for your help :)
« Last Edit: January 14, 2009, 10:44:13 AM by Arathel »
Logged
If it\'s dark, it\'s dark.

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Which of my ideas would work or won't work with WME - Questions
« Reply #7 on: January 14, 2009, 11:11:45 AM »

Just to be sure, the alpha channel is static for every video and can't change realtime.
Logged
fl*p

Arathel

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Which of my ideas would work or won't work with WME - Questions
« Reply #8 on: January 15, 2009, 10:06:59 PM »

I will add some effects to the main character sprite. Is it possible to have the character look like that he constantly in motion by using the actor idle sprite set?
think of it as an overlay effect I will add to most of my backgrounds and the character. I want to keep the possibility of idle animations, but I also want to have that aforementioned constant effect being displayed on the character.

Since this is hard to explain, I made a animated crappy GIF:

http://img3.imagebanana.com/img/77iokmid/1.gif

The lines will be displayed constantly on the character, but he still has normal idle animations.
« Last Edit: January 15, 2009, 10:30:34 PM by Arathel »
Logged
If it\'s dark, it\'s dark.

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re: Which of my ideas would work or won't work with WME - Questions
« Reply #9 on: January 16, 2009, 03:04:29 AM »

Should be easy. You could create a separate entity which only displays your line effect.
Attach a script to that entity, which simply positions the entity to the current position of your actor in an infinite loop.

Well, that's it already. The actor and its animations are not affected by this method and the effect will just move together with the actor.


Logged
Mooh!

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Which of my ideas would work or won't work with WME - Questions
« Reply #10 on: January 16, 2009, 04:52:33 AM »

You could create a separate entity which only displays your line effect.
Attach a script to that entity, which simply positions the entity to the current position of your actor in an infinite loop.

I use this exact method for over laying stuff on the actor in my game in some situations.

Also remember that you are not limited to the default "animation sets" that you see in the demo actors. You can make as many animation sets as you like in the actor3d or actor file. Anyways, these other animations can be triggered and set up anyway you like. So you can have 5 idle animations, that is chosen randomly when you stop doing anything on screen, also you can have any other animation set loop and act just like the default idle.. eg - a dance animation.
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Which of my ideas would work or won't work with WME - Questions
« Reply #11 on: January 16, 2009, 03:34:12 PM »

Also see actor.AddAttachment() method.
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.059 seconds with 24 queries.