Need help with Loops

Hello guys I'm new to this forum, I just realized I was trying to post in a wrong section..

Anyway, I'm also new to Maker XP, used 2003 for a lot of time already, but wanted to move to better graphics.

But, I'm not used to scripts, never used them before.

So here's the thing, I need to use the rgss scripts to put a rotating picture on my title screen.

I managed to place the picture, but I don't know how to make a loop with scripts, and don't know how to make a rotating picture either.

So far I did this

    @picture2 = Sprite.new

    @picture2.bitmap = RPG::Cache.picture("MagicCircle2")

    @picture2.y = 0

    @picture2.opacity = 3

    @picture2.x = 0

    @picture2.angle = 0

 
 

 

Long story short. I need a Loop script to rotate the above picture.

 

Also, if possible, I need a way to trigger a random event when walking on certain maps. (Like battles).

 

 

Thank you in advance guys.

Cheers 
I've moved this thread to Learning Ruby and RGSSx (Script Requests is when you are requesting someone to write a script for you). Please be sure to post your threads in the correct forum next time. Thank you.


You would NOT use a loop in the script to rotate the picture. You would just adjust the rotation to the next value (increase/decrease @picture2.angle) in the scene's update method, which gets called on every frame.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-loops.19022/