OmegaDev
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A script request!

4 posters

Go down

A script request! Empty A script request!

Post by Vectomon Wed Jun 16, 2010 12:58 pm

So, my game will have space travel, meaning some times actor1's helmet will be off and soemtimes on. I don't know if it's possible, but is there a way to replace actor1's spritesheet with another 1 with either a switch, a script call or only on marked maps? Not with all three, just the method that's easier to script Smile
avatar
Vectomon
Resource Moderator
Resource Moderator

Posts : 1029
Gald : 3025

Stats
Cookies: 0

Back to top Go down

A script request! Empty Re: A script request!

Post by Dezz123 Wed Jun 16, 2010 1:14 pm

I think it can be done via conditional branch.

Try this:
If actor has armor equipped:
Change actor graphic.
Else:
Change actor graphic to the normal one.
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

A script request! Empty Re: A script request!

Post by Vectomon Wed Jun 16, 2010 1:31 pm

Well, it's not an equip, or an item at all. It's just a changing graphic. Is it possible to be done?
avatar
Vectomon
Resource Moderator
Resource Moderator

Posts : 1029
Gald : 3025

Stats
Cookies: 0

Back to top Go down

A script request! Empty Re: A script request!

Post by crazedanimekid Wed Jun 16, 2010 1:57 pm

I think so, yes. Like Dez said, you could use a conditional branch. However, instead of checking a certain piece of equipment, you could check a variable or a switch.

Once the check is satisfied, you could use an event to change the actor's helmet.

For example. The event that transfers the actor into the spaceship could perform these actions.
crazedanimekid
crazedanimekid
Platinum Cookiez
Platinum Cookiez

Posts : 501
Gald : 1277

Stats
Cookies: 0

Back to top Go down

A script request! Empty Re: A script request!

Post by Dezz123 Wed Jun 16, 2010 2:00 pm

Yes.
(If you want it to be for certain maps, simply do this on the maps you want:
Parallel Process: The things beneath, then Erase Event.)

Conditional Branch.
If it's an equippable armor, see above.
If it's a switch, do this:

If switch is on:
Change actor graphic.
Else:
Change actor graphic to original.
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

A script request! Empty Re: A script request!

Post by Vectomon Wed Jun 16, 2010 2:21 pm

Thanks a lot guys! I'm so dumb for this kind of stuff. xC
Edit: WOOH! It worked! 8D You guys made Una 10% more awesome.
avatar
Vectomon
Resource Moderator
Resource Moderator

Posts : 1029
Gald : 3025

Stats
Cookies: 0

Back to top Go down

A script request! Empty Re: A script request!

Post by Dezz123 Wed Jun 16, 2010 3:22 pm

It's okay. xD
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

A script request! Empty Re: A script request!

Post by crazedanimekid Wed Jun 16, 2010 4:07 pm

No worries, dude.
crazedanimekid
crazedanimekid
Platinum Cookiez
Platinum Cookiez

Posts : 501
Gald : 1277

Stats
Cookies: 0

Back to top Go down

A script request! Empty Re: A script request!

Post by omegas7 Fri Jun 18, 2010 5:45 pm

Yeah, no problem, I'm just too useful.
omegas7
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

http://www.omegadev.biz

Back to top Go down

A script request! Empty Re: A script request!

Post by Dezz123 Mon Jul 05, 2010 7:19 am

Omegas didn't do anything.... xD
And this is now.....

-Closed.
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

A script request! Empty Re: A script request!

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum