Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Help]Transitions...  (Read 1721 times)

0 Members and 1 Guest are viewing this topic.

ZFG

[Help]Transitions...
« on: May 02, 2010, 06:59:35 pm »
  • ⌘⌥⌫↵⏏⌃
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 39
Ok, so I've been trying to get a transition engine to work. Here is how I do is so far:
Code: [Select]
if Outside View 0
if global.facing="R"
objViewFollow.x =+ 320;

if global.facing="L"
objViewFollow.x =- 320;

if global.facing="D"
objViewFollow.y =+ 240;

if global.facing="U"
objViewFollow.y =- 240;

Now, The transitions stops halfway through. Link keeps walking but the camera has frozen.

How do I fix it?
Logged
Re: [Help]Transitions...
« Reply #1 on: May 03, 2010, 06:10:26 am »
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3725
In all honesty I don't know. You have given squat about code.
- Not to mention that I do not know what event it is?
- What is the purpose of the first line of code?
- What happens to the view if it does not need to transition?

My advice is to try and use '(', ')', '{', '}' characters and 'tabs' to see what the scopes and statements/expressions are in your code. It helps yourself to use white spacing and delimiter characters in your code even if the syntax could work without.
Logged
Re: [Help]Transitions...
« Reply #2 on: May 03, 2010, 06:24:21 am »
  • Team Dekunutz
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 292
I think the first line is referring to the event, as in the event 'Outside view 0'.
Do what Niek said about all the structure, and shouldn't it be "+=" and "-=" not the other way around?
Logged

Mamoruanime

@Mamoruanime
Re: [Help]Transitions...
« Reply #3 on: May 03, 2010, 06:44:15 am »
  • ^Not actually me.
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9786
^this.

You're essentially making it equal to a negative or positive number, and not incrementing the value.
Logged
Re: [Help]Transitions...
« Reply #4 on: May 03, 2010, 06:52:08 am »
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3725
I think the first line is referring to the event, as in the event 'Outside view 0'.
I don't know, it is not really clear. But if I read the first line correct than it says this:
Code: [Select]
if( Outside ){
    View;
}
0;
« Last Edit: May 03, 2010, 06:53:45 am by Niek »
Logged
Re: [Help]Transitions...
« Reply #5 on: May 03, 2010, 08:29:01 am »
  • Team Dekunutz
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 292
Yeah I spose so, but I do think they were just informing us the event.
Logged

ZFG

Re: [Help]Transitions...
« Reply #6 on: May 03, 2010, 01:30:42 pm »
  • ⌘⌥⌫↵⏏⌃
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 39
Sorry for not giving enough information.

So, I've almost fixed it:
Code: [Select]
if global.facing="R"
    view_current.x = +320;


if global.facing="L"
    view_current.x = -320;


if global.facing="D"
    view_current.y = +240;


if global.facing="U"
    view_current.y = -240;
    

It almost works. Only problem is to go up and down. It gets buggy here, goes back and forth.
I've tried to make Link move about 32 pixels down or up from his original X and Y postion. No luck.

EDIT: It's still in the Outside View 0 event.
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.045 seconds with 52 queries.