Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

help whit a dog tranform skill for 15 seconds

aram

Member

help.jpg


whats wrong whit this? :down:
 
And that's part of the problem.

See, your parallel process event is checking the timer, right?

Sure. But it's also setting the timer. Every time the event cycles, the timer is getting set to six seconds. Setting a timer and checking a timer have to always be different events.
 
You need 2 events on your map.

Event 1:

Trigger = Parallel Process
Commands =
@> Set timer (time you want)
@> Change Graphic (Graphic you want)
@> Erase Event (To stop it from resetting the timer over and over)

Event 2:

Trigger = Parallel Process
Commands =
@> Conditional Branch (If Timer has run out)
@> Change Graphic (Normal Graphic)
@> Erase Event
@> End Branch

Does that help?

EDIT: Almost forgot, for event 1 you need a pre-condition(on the left side of the event window), and set a switch, or variable or whatever to be checked.
 
Because the event is run over and over and over again. Each time your event is run, the timer is reset to 6 seconds. You need to keep it from rechecking the timer. I think the best way to do it would be to put your conditional branch into a loop, then when the condition is met, you need a break loop command and you also need to turn switch 1 off. So ti should look like this:
[rgss] 
@>Control Timer: Startup (0 min. 6 sec.)
@>Change Actor Graphic: [Aluxes], 151-Animal01,0,,0
@>Loop
@>Control Variables: [0027: timer] = Timer
@>Conditional Branch: Variable [0027: timer] == 1
  @>Change Actor Graphic: [Aluxes], 001-Fighter01,0,,0
  @>Control Switches: [0001: dog on] = off
  @>Break Loop
 : Branch End
@>
 
[/rgss]

That should get it to come out right for you. If it doesn't play with it. See what you can get.
 
Xgame, if that's one event, parallel process, wouldn't it keep resetting the timer?

aram, the screenshots you posted can't be from the same game. Screenshot one shows two common events. Screenshot two shows only one-- the timer-checking event. (It still has the timer getting set inside the same event that checks the timer, which, as we keep telling you will not work.)
 

aram

Member

"dude its not the same i use common event he uses pararell process and he does it altlle different than me, but thanks anyway :thumb:"

i need someone to turn into a dog and back trough a skill and not events, is that clear enough? :shock:

ps: sorry that im unclear about explaining sorry
 

Star

Sponsor

When you use the skill and the common event activates. Change a "random variable" to 1 and set the timer to what ever you like.. and then change the graphic to the dog and then erase event

Having a parallel process on every map that transforms your character back doesn't affect any thing unless your not using an ABS

You need a parallel process on each map that calls a common event with a wait of 1 to 20 frames underneath it so it doesn't lag your game

Conditional Branch
If random variable is equal to 1
____If timer is less than 1 seconds
_______Change Graphic Player = 001 Fighter
_______Change "random variable" to 0

And your done
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top