RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED]Possible use of variables to keep track of which sprite your character

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 86
I've tried to make the subject as clear as possible, but it would've taken to long.

One of the things I'm working on for my game invovles a kind of character generation process.  You walk up to a standing character, choosing how it will look at the beginning of the game.  So far, it seems to work, right now you only get to select your gender, sprite and name.  Some point int he game I will be making it to where you are transported somewhere, and swicth to a different sprite, alsmot making you someone else.

My question is... How do I make to where the player comes back, to the original world, and use the same sprite the player selected at the beginning fo the game?  I've tried playing with variables, and only succeeeded in confusing myself.

Has anyone used this kind of method in there game and can post a demo where I can peek at the source, or post a smaple source?

A link to a very good resource on variables would also be appreciated.  So far all the links I've clicked on don't seem to do it for me.

Thank you for your time.

Edit:  Oh, and it's for RPRG Maker XP
« Last Edit: December 04, 2007, 03:16:01 PM by Zeriab »

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
 ???

Just make three (or two) variables.

variable 1. Gender
variable 2. Sprite

3. Does the name change?
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 86
Nope.  name does not change.

I realize I did not explain enough.

I used a tree stump as a place holder for now, and created a touchable event on it, that does my animation (thanks to oterhs to make that work), PC dissapears, and appears ont he new map (also with flashy animation) but looks vastly different.  (all this on the event)

PC walks around for a while, then touches a rock and in that rocks event, right now it does the same things, but since I can't figure it out yet, it uses the sprite for Aluxes (stock character setup).

As you have stated...do I need to place the variable checks in the 'return' teleport to put player back to chosen sprite?

 ???
I can't seem to explain well enough...

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 86
I think I found something.  While waiting for another reply, I played around with the branching statements, ceated a common event, checking for a vaiable of 1-10 assigned to the player for shich sprite, and 0-1 for which gender.  So, I basically have somethign like yours, but it's about 10 branches, with no answer to 'ELSE' (allowing it just to get to the next one in sequence) all buried into another branch statement, this one just checking for variable gender 0 or 1.  So I have 20 open branches... 10 for male, 10 for female with each IF assigned to changing the sprite of the character...  I think it'll work...

Example:

The only problem I think will be later on in development this may throw a monkey wrench into it all...  Any ideas on further doing this?  Like maybe assigning a variable of 101 for the first male sprite then 201 for the first female sprite?  cruch it up into something smaller?

**
Rep: +0/-0Level 86
I pretty much have thos covered myself.  No answer to the last post so...  I guess this is resolved.