There Is No Character {Solved}

Started by T-Pr, Sat 09/01/2010 15:54:42

Previous topic - Next topic

T-Pr

Hey guys,I have a problem.I'm using AGS 3.1.2.I have animations and menu at the beginning of the game.In my first room,I put a player character's view 2  .In view 2,there is empty sprite.I did this for make animation.1. 2. 3. 4. 5. 6. 7. 8. 9. rooms have an animation and different backgrounds(for example;computer screen) for explain game idea.But in 10.room player must play,but my character is invisible.I tried to make another room and I played in it,my character is invisible in other rooms,too.I tried to make another character,and I make the roger ''player character''.But it didn't solved.But at the beginning of game,I removed all sprites of Roger.And I put my character's sprites to view one.When I saw this problem,I loaded roger from my other game by making import character,then I tried to play with roger.I couldn't solve the problem,I deleted all characters and make a new one,the problem didn't solved.I looked all views but there is no problem.And there is no problem in rooms,too.What can I do? My character is invisible!!!

monkey0506

There's a per-room setting for "ShowPlayer" or something like that which can only be set in the room editor. Have you checked that?

T-Pr

Yes,I check it.I know it but it's ''True'' that player must be visible.But player is invisible.I'm not a guy that beginner in AGS. But I saw this problem new,it's easy problem but hard to solve.I'm working on it for hours.

monkey0506

Try putting this in your room_AfterFadein function and see what it says:

Code: ags
  Display("Player view %d, loop %d, frame %d, transparency %d", player.View, player.Loop, player.View, player.Transparency);

T-Pr

View 7,Loop 0,frame 8,transparency 0

View 7 is my character's view.But there is only 6 FRAMES in LOOP 0 . What can I do?

monkey0506

In any of your scripts do you have any code that might be changing the frame? Character.Frame is writable, so try searching all your scripts for ".Frame" and see if the frame is being explicitly set anywhere.

Beyond that I don't know why it would be getting set to an invalid frame number. I'm fairly sure that if you try to specify an invalid frame manually that should actually crash the engine.

Try adding this line to your room_FirstLoad function:

Code: ags
  player.Frame = 0;


Then click Build->Rebuild all files.

See if that makes any difference.

It shouldn't be necessary, but just trying to figure out what's going on.

T-Pr

I tried but there is no way.I looked all things,views,frames,loops,characters,room settings.But I couldn't do,anyway I'm gonna make the game again.I'll keep all graphic files and I'll remove all files of my game from AGS.At least you tried to help me,thanks a lot.

MrCheminee

Do you actually have a View 7,Loop 0,frame 8?

SMF spam blocked by CleanTalk